@props(['hours']) @php $today = (int) now()->isoWeekday(); @endphp @if ($hours->isNotEmpty())
merge(['class' => 'space-y-2 text-sm']) }}> @foreach ($hours as $day) @php $slots = $day->slots(); $isToday = $day->day_of_week === $today; @endphp
$isToday, 'text-ink-muted' => ! $isToday, ])>
$isToday])>{{ $day->dayName() }}
{{-- Chaque créneau reste insécable : une plage horaire ne doit jamais être coupée au milieu, même dans une colonne étroite. --}}
@if ($slots === []) {{ $day->fallbackLabel() }} @else @foreach ($slots as $slot) {{ $slot }} @endforeach @endif
@endforeach
@endif