@extends('layouts.app', ['canonical' => $page->url()]) @section('content')
| Date | @foreach($months as $m){{ substr(ucfirst(\App\Support\ChartPage::MONTHS[$m - 1]), 0, 3) }} | @endforeach
|---|---|
| {{ str_pad($day, 2, '0', STR_PAD_LEFT) }} | @foreach($months as $m) @php $valid = checkdate($m, $day, $page->year); $date = $valid ? \Illuminate\Support\Carbon::create($page->year, $m, $day) : null; $key = $date?->toDateString(); @endphp@if(!$valid || $date->isFuture() && !$date->isToday()) @else @include('chart.partials.cell', ['has' => array_key_exists($key, $map), 'num' => $map[$key] ?? null, 'day' => $date]) @endif | @endforeach