@php use App\Enums\Tasks\RelatedToType; @endphp
@if($tasks->count() > 0) {{-- --}} @foreach($tasks as $task) {{-- --}} @endforeach
Title Due date StatusRelated to type Related to Assigned ToNotes Created At Updated At Actions
{{ \Illuminate\Support\Carbon::create($task->due_date)->format('M d, Y') }} {{ $task->status }}{{ str(RelatedToType::from($task->related_to_type)->name)->lower() }} {{ $task->relatedTo?->first_name ?? '-' }} {{ $task->assignedUser->full_name }}{{ str($task->notes)->limit(30) }} {{ $task->created_at->format('M d, Y') ?? '-' }} {{ $task->updated_at->format('M d, Y') ?? '-' }}
@can('crm_lead_tasks-edit') @endcan @can('crm_lead_tasks-destroy') @if(!$task->assigned_to)
@method('DELETE') @csrf
@endif @endcan
@else @endif