@php $prBadge = ['high' => 'bg-accent-coral/10 text-accent-coral', 'medium' => 'bg-amber-100 text-amber-700', 'low' => 'bg-paper-100 text-ink-500']; $sections = [ 'overdue' => ['label' => __('Overdue'), 'accent' => 'text-accent-coral'], 'today' => ['label' => __('Today'), 'accent' => 'text-wa-deep'], 'upcoming' => ['label' => __('Upcoming'), 'accent' => 'text-ink-800'], 'no_date' => ['label' => __('No date'), 'accent' => 'text-ink-500'], ]; @endphp
{{ __('CRM') }}

{{ __('My') }} {{ __('tasks') }}

{{ __('Follow-ups and to-dos — assign them, prioritize, and get a reminder when they are due.') }}

@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif @if ($errors->any())
@foreach ($errors->all() as $e)
{{ $e }}
@endforeach
@endif
@foreach ($sections as $key => $meta)
{{ $meta['label'] }} {{ count($buckets[$key]) }}
@forelse ($buckets[$key] as $t)
@csrf
{{ $t->title }}
{{ $t->priority }} @if ($t->due_at){{ $t->due_at->format('d M, H:i') }}@endif @if ($t->relatedLabel())· {{ $t->relatedLabel() }}@endif @if ($t->assignee_id && $t->assignee?->name)· {{ $t->assignee->name }}@endif
@csrf @method('DELETE')
@empty
{{ __('Nothing here.') }}
@endforelse
@endforeach
@if ($doneRecent->isNotEmpty())
{{ __('Recently completed') }} ({{ $doneRecent->count() }})
@foreach ($doneRecent as $t)
{{ $t->title }}
@csrf
@endforeach
@endif
{{-- New-task modal --}}