{{ now()->format('F Y') }}
@php
$startOfMonth = now()->startOfMonth();
$endOfMonth = now()->endOfMonth();
$startDate = $startOfMonth->copy()->startOfWeek();
$endDate = $endOfMonth->copy()->endOfWeek();
$today = now();
$calendarDates = [];
for($date = $startDate->copy(); $date->lte($endDate); $date->addDay()) {
$calendarDates[] = $date->copy();
}
$totalDays = count($calendarDates);
@endphp
@foreach($calendarDates as $index => $date)
@endforeach