Tasks

Exported on {{ now()->format('F j, Y \a\t g:i A') }}
@forelse ($tasks_export as $task) @php $staffName = trim(($task->staff->first_name ?? '') . ' ' . ($task->staff->last_name ?? '')); $priorityClass = $task->priority === 'high' ? 'danger' : ($task->priority === 'medium' ? 'warn' : 'success'); $statusClass = $task->status === 'open' ? 'info' : ($task->status === 'hold' ? 'warn' : 'success'); $mentions = $task->mentions ? $task->mentions->map(function ($mention) { $staff = $mention->staff; return $staff ? ($staff->full_name ?: trim(($staff->first_name ?? '') . ' ' . ($staff->last_name ?? ''))) : null; })->filter()->implode(' | ') : '—'; $students = $task->students ? $task->students->map(function ($student) { $name = trim(($student->first_name ?? '') . ' ' . ($student->last_name ?? '')); return $name ?: ($student->full_name ?? ('Student #' . $student->id)); })->filter()->implode(' | ') : '—'; @endphp @empty @endforelse
Task Type Staff Mentions Students Start Due Priority Status Progress
{{ $task->task_name ?? '—' }} {{ $task->task_type ?? '—' }} {{ $staffName ?: '—' }} {{ $mentions ?: '—' }} {{ $students ?: '—' }} {{ $task->start_date ? \Carbon\Carbon::parse($task->start_date)->format('Y-m-d') : '—' }} {{ $task->due_date ? \Carbon\Carbon::parse($task->due_date)->format('Y-m-d') : '—' }} {{ ucfirst($task->priority ?? '—') }} {{ ucfirst($task->status ?? '—') }} {{ $task->progress ?? 0 }}%
No tasks found.