@extends('layouts.app') @php $typeColors = [ 'public' => 'primary', 'national' => 'success', 'religious' => 'info', 'company' => 'warning', 'optional' => 'secondary', ]; @endphp @section('title', 'Holiday Calendar') @section('header', 'Holiday Calendar') @section('subheader', $calendar['month']->format('F Y')) @section('header-actions')
List View @can('create', App\Models\Holiday::class) New Holiday @endcan
@endsection @section('content')
Prev

{{ $calendar['month']->format('F Y') }}

Next
@foreach (['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'] as $day) @endforeach @foreach ($calendar['weeks'] as $week) @foreach ($week as $cell) @php $isToday = $cell['date']->isToday(); @endphp @endforeach @endforeach
{{ $day }}
{{ $cell['date']->day }}
@foreach ($cell['holidays'] as $holiday) {{ $holiday->title }} @endforeach
@foreach ($typeColors as $type => $color)   {{ ucfirst($type) }} @endforeach
@endsection