@php
$days = [
'monday' => 'Maandag',
'tuesday' => 'Dinsdag',
'wednesday' => 'Woensdag',
'thursday' => 'Donderdag',
'friday' => 'Vrijdag',
'saturday' => 'Zaterdag',
'sunday' => 'Zondag',
];
$currentDay = strtolower(now()->format('l'));
@endphp
@foreach($days as $dayKey => $dayName)
@if(isset($schedule[$dayKey]) && $schedule[$dayKey]->count() > 0)
{{ $dayName }}
@if($dayKey === $currentDay)
Vandaag
@endif
@foreach($schedule[$dayKey] as $slot)
{{ $slot->start_time->format('H:i') }}
{{ $slot->end_time->format('H:i') }}
{{ $slot->user->username }}
@if($slot->show_name)
- {{ $slot->show_name }}
@endif
@if($slot->description)
{{ $slot->description }}
@endif
@if($dayKey === $currentDay && now()->format('H:i') >= $slot->start_time->format('H:i') && now()->format('H:i') <= $slot->end_time->format('H:i'))
NU LIVE
@endif
@endforeach
@endif
@endforeach
@if($schedule->isEmpty())
Er zijn momenteel geen shows gepland.
Kom later terug voor updates!
@endif