{{-- Calendar, upcoming due dates, quick notes --}}
{{-- Live calendar --}}

Calendar

{{ now()->format('F Y') }}

SMTWTFS
@php $firstDay = now()->startOfMonth()->startOfWeek(); $lastDay = now()->endOfMonth()->endOfWeek(); $currentDay = $firstDay->copy(); $today = now(); @endphp @while ($currentDay <= $lastDay) @if ($currentDay->month != now()->month) {{ $currentDay->day }} @elseif ($currentDay->isSameDay($today)) {{ $currentDay->day }} @else {{ $currentDay->day }} @endif @php $currentDay->addDay(); @endphp @endwhile
@if ($upcomingDueInvoices->isNotEmpty())

Upcoming due

@endif
{{-- Quick notes --}}
sticky_note_2

Quick notes

@forelse ($notes as $note) @php $typeLabel = match ($note->type) { 'warning' => 'Payment due', 'reminder' => 'Reminder', 'task' => 'Client task', default => 'Note', }; $typeRing = match ($note->type) { 'warning' => 'ring-amber-200/80 bg-amber-50/50', 'reminder' => 'ring-sky-200/80 bg-sky-50/50', 'task' => 'ring-emerald-200/80 bg-emerald-50/50', default => 'ring-slate-200/80 bg-slate-50/80', }; @endphp
{{ $typeLabel }} @if ($note->is_pinned) push_pin @endif

{{ $note->title }}

{{ $note->content }}

@if ($note->due_date) event {{ $note->due_date->format('M j, Y') }} @endif
@empty
note_add

No notes yet

Capture reminders and follow-ups

@endforelse