Monthly Appointments Report

{{ $clinic->name }}

{{ $startOfMonth->format('F Y') }}
Total
{{ $stats['total'] }}
Confirmed
{{ $stats['confirmed'] }}
Completed
{{ $stats['completed'] }}
Cancelled
{{ $stats['cancelled'] }}

Daily Appointments Summary

@php $currentDate = $startOfMonth->copy(); @endphp @while($currentDate <= $endOfMonth) @php $dateStr = $currentDate->format('Y-m-d'); $counts = $dailyCounts[$dateStr] ?? ['total' => 0, 'confirmed' => 0, 'completed' => 0, 'cancelled' => 0]; $isWeekend = $currentDate->isWeekend(); @endphp @php $currentDate->addDay(); @endphp @endwhile
Date Total Confirmed Completed Cancelled
{{ $currentDate->format('D, M j, Y') }} @if($isWeekend) (Weekend) @endif {{ $counts['total'] }} {{ $counts['confirmed'] }} {{ $counts['completed'] }} {{ $counts['cancelled'] }}
TOTAL FOR MONTH {{ $stats['total'] }} {{ $stats['confirmed'] }} {{ $stats['completed'] }} {{ $stats['cancelled'] }}