Próximos Eventos
Consulte as datas destacadas e clique nos eventos para visualizar os detalhes completos.
EVENTOS
D
S
T
Q
Q
S
S
@php
$today = now();
$year = $today->year;
$month = $today->month;
$firstDay = \Carbon\Carbon::create($year, $month, 1);
$daysInMonth = $firstDay->daysInMonth;
$startDay = $firstDay->dayOfWeek;
$eventosPorDia = [];
foreach ($eventos as $evento) {
$dia = \Carbon\Carbon::parse($evento->ev_data)->day;
$eventosPorDia[$dia] = $evento;
}
@endphp
@for ($i = 0; $i < $startDay; $i++)
@endfor
@for ($day = 1; $day <= $daysInMonth; $day++)
@php
$evento = $eventosPorDia[$day] ?? null;
@endphp
@if($evento)
{{ $day }}
@else
{{ $day }}
@endif
@endfor