@foreach($months as $m)
{{ $m['name'] }}
| S | M | T | W | T | F | S |
@foreach($m['grid']['weeks'] as $week)
@foreach($week as $day)
| isNotEmpty()) style="background: {{ $colorTint[$types->firstWhere('name', $day['events']->first()->type)?->color] ?? '#e2e8f0' }};" title="{{ $day['events']->pluck('title')->implode(', ') }}" @endif>
{{ $day['date']->day }}
|
@endforeach
@endforeach
@endforeach
@foreach($types as $type)
{{ $type->name }}
@endforeach
Weekend
@if($eventsByType->isNotEmpty())
{{ $year }} — Holidays & Events
@foreach($types as $type)
@continue(($eventsByType[$type->name] ?? collect())->isEmpty())
{{ $type->name }}
@foreach($eventsByType[$type->name] as $event)
| {{ $event->title }} |
{{ $event->start_date->format('M j') }}@if(!$event->start_date->eq($event->end_date)) – {{ $event->end_date->format('M j') }} @endif
|
{{ $event->dayCount() }} {{ \Illuminate\Support\Str::plural('day', $event->dayCount()) }} |
@endforeach
@endforeach
@endif