Reminders @php $sections = [ 'overdue' => ['label' => 'Overdue', 'color' => 'destructive'], 'today' => ['label' => 'Today', 'color' => 'warning'], 'this_week' => ['label' => 'This week', 'color' => 'default'], 'later' => ['label' => 'Later', 'color' => 'secondary'], ]; $total = collect($grouped)->sum(fn ($g) => $g->count()); @endphp

Reminders

{{ $total }} pending follow-up{{ $total === 1 ? '' : 's' }}.

List Calendar
Schedule a follow-up
@csrf
Title
When
Contact (optional)
Note (optional)
Schedule
@error('title')

{{ $message }}

@enderror @error('remind_at')

{{ $message }}

@enderror
@foreach ($sections as $key => $section) @if ($grouped[$key]->isNotEmpty()) {{ $section['label'] }} {{ $grouped[$key]->count() }}
    @foreach ($grouped[$key] as $r)
  • @csrf @method('PATCH')

    {{ $r->title }}

    $r->isOverdue(), 'text-muted-foreground' => !$r->isOverdue(), ])>{{ $r->remind_at->diffForHumans() }}
    @if ($r->contact) @endif @if ($r->description)

    {{ $r->description }}

    @endif
    @csrf @method('DELETE')
  • @endforeach
@endif @endforeach @if ($total === 0)

No pending reminders. Schedule one above.

@endif @if ($completed->isNotEmpty())
Recently completed ({{ $completed->count() }})
    @foreach ($completed as $r)
  • {{ $r->title }} {{ $r->completed_at?->diffForHumans() }}
  • @endforeach
@endif