kithkin/resources/views/components/calendar/month/month.blade.php

23 lines
567 B
PHP

@props([
'grid' => ['weeks' => []],
'calendars' => [],
'events' => [],
'class' => '',
'hgroup' => [],
])
<section class="calendar {{ $class }}">
<hgroup>
@foreach ($hgroup as $h)
<span>{{ $h['label'] }}</span>
@endforeach
</hgroup>
<ol data-weeks="{{ count($grid['weeks']) }}">
@foreach ($grid['weeks'] as $week)
@foreach ($week as $day)
<x-calendar.month.day :day="$day" :events="$events" :calendars="$calendars" />
@endforeach
@endforeach
</ol>
</section>