{{-- Main Panel --}}
{{-- Header --}}
@lang('My tasks')
{{ $this->totalTasksCount }} @lang('pending task(s)') @if($this->overdueCount > 0) • {{ $this->overdueCount }} @lang('overdue') @endif
{{-- --}}
{{-- Body --}}
{{-- Settings Panel --}} @if($showSettings)
@lang('Task order')
@foreach($taskTypeOrder as $index => $typeId) @php($taskType = \App\Enums\LeadTaskTypeId::tryFrom($typeId)) @if($taskType)
{{ $taskType->label() }}
@endif @endforeach
@endif {{-- Next Task Quick Action --}} @if($this->nextTask) @php($nextTask = $this->nextTask) @php($lead = $nextTask->model)
@lang('Next task')
@if($nextTask->lead_task_type_id) {{ $nextTask->lead_task_type_id->label() }} @endif
{{ $nextTask->title }}
@if($lead)
{{ strtoupper(substr($lead->firstname ?? '', 0, 1) . substr($lead->lastname ?? '', 0, 1)) }}
{{ $lead->name_and_surname ?? 'N/A' }}
{{ $lead->phone_main ?: $lead->phone_mobile ?: 'N/A' }}
@endif
@if($lead) @endif
@endif {{-- Task Groups by Type --}} @forelse($this->groupedTasks as $typeId => $tasks) @php($taskType = \App\Enums\LeadTaskTypeId::tryFrom((int) $typeId)) @if($tasks->count() > 0)
{{ $taskType?->label() ?? 'Tâches du jour' }}
{{ $tasks->count() }}
{{-- Task Items --}}
@foreach($tasks->take(10) as $task) @php($taskLead = $task->model)
{{ $task->title }}
@if($task->start_at) {{ $task->start_at->diffForHumans() }} @else @lang('Today') @endif
@if($taskLead) @endif
@endforeach @if($tasks->count() > 10)
+{{ $tasks->count() - 10 }} @lang('more tasks')
@endif
@endif @empty
@lang('All caught up!')

@lang('No pending tasks for now. Great job!')

@endforelse
{{-- Reschedule Modal --}} @if($rescheduleTaskId)
{{--
--}} {{--
--}}
@endif {{-- Quick Create Task Modal --}} @if($showCreateModal)
{{--
--}}
@if(!$createModelType)
@endif
{{--
--}}
@endif {{-- Floating Button --}}