@extends('layouts.dashboard') @section('header')

{{ __('Tasks Management') }}

@endsection @section('content')

Tasks

@can('create', \App\Models\Task::class) Add Task @endcan
@foreach($tasks as $task) @endforeach
Title Due Date Priority Status Assigned To Related Lead Actions
{{ $task->title }} {{ $task->due_date ? \Carbon\Carbon::parse($task->due_date)->format('M d, Y') : '-' }} {{ ucfirst($task->priority) }} {{ ucfirst($task->status) }} {{ $task->user ? $task->user->name : '-' }} {{ $task->lead ? $task->lead->name : '-' }}
@if($task->status=='pending')
@csrf
@endif
@csrf @method('DELETE')
{{ $tasks->links() }}
@endsection