My Tasks
@if($showAdd)
@endif
@if($showEdit)
@endif
@forelse($tasks as $task)
@php
$isOverdue = $task->due_at?->isPast();
$isSoon = $task->due_at?->isBetween(now(), now()->addHours(48));
@endphp
@if($task->description)
{{ $task->description }}
@endif
Due {{ $task->due_at ? $task->due_at->format('d/m/Y H:i') : '—' }}
@if($task->due_at)
({{ $task->due_at->diffForHumans() }})
@endif
@empty
No outstanding tasks.
@endforelse