@if ($logo) @endif
{{ $school_name }}
{{ $school_address }}
Academic Calendar {{ $report_year }}
@foreach ($calendar_items_by_month as $month => $items)
{{ $month }}
@if (count($items) > 0) @foreach ($items as $item) @php $itemDate = is_object($item) ? $item->date : $item['date']; $itemTitle = is_object($item) ? $item->title : $item['title']; $itemType = is_object($item) ? $item->type : $item['type']; @endphp
{{ \Carbon\Carbon::parse($itemDate)->format('d M Y') }}
{{ $itemTitle }}
{{ ucfirst($itemType) }}
@endforeach @else
No events scheduled
@endif
@endforeach
{{--
Legend
Holidays
Examinations
Events
--}}