@foreach (['Sun','Mon','Tue','Wed','Thu','Fri','Sat'] as $wd)
{{ $wd }}
@endforeach
{{-- Day cells --}}
@foreach ($days as $day)
@php
$key = $day->format('Y-m-d');
$dayReminders = $reminders->get($key, collect());
$inMonth = $day->month === $month->month;
$isToday = $day->isSameDay($today);
$isPast = $day->lt($today);
@endphp
$inMonth,
'bg-muted/20 text-muted-foreground/60' => !$inMonth,
])
@click="openOn('{{ $key }}')">
$isToday,
'text-foreground' => !$isToday && $inMonth,
'text-muted-foreground/60' => !$inMonth,
])>{{ $day->day }}
@if ($dayReminders->count() > 3)
+{{ $dayReminders->count() - 3 }}
@endif
@foreach ($dayReminders->take(3) as $r)
@php
$isOverdue = $r->isOverdue();
$isComplete = $r->status === 'completed';
@endphp
$isOverdue,
'bg-emerald-500/15 text-emerald-700 dark:text-emerald-300 line-through opacity-70' => $isComplete,
'bg-primary/15 text-primary' => !$isOverdue && !$isComplete,
])>
{{ $r->remind_at->format('H:i') }}
{{ $r->title }}
@endforeach
@endforeach