@php $today = today()->toDateString(); @endphp

Calendar

@if ($properties->count() > 1) @elseif ($current) {{ $current->name }} @endif
@if (! $current)
@if (auth()->user()->isOwner()) Add a property and its rooms first. @else You have not been assigned to any properties yet. Ask an owner to assign you. @endif
@else
@if ($rows->isEmpty())
This property has no active rooms yet.
@else
{{-- Header: one column per day. --}}
@foreach ($dates as $date)
$date->toDateString() === $today, 'bg-stone-50 text-stone-500' => $date->isWeekend() && $date->toDateString() !== $today, 'text-stone-500' => ! $date->isWeekend() && $date->toDateString() !== $today, ])>
{{ $date->format('D') }}
{{ $date->format('j') }}
@if ($loop->first || $date->day === 1)
{{ $date->format('M') }}
@endif
@endforeach
@foreach ($rows as $row) @endforeach
Confirmed Checked in Checked out Blocked
@endif @endif