Change logo Add luister and kijk icons Tip de streekredactie points to whatsapp 088-8505651 Add s to Podcast Removed waterschapsverkiezingen from menu Podcast autoplay disabled Remove Gooische Courant and NH Nieuws Changed NH Gooi to Over NH Gooi Added padding and border-radios to homepage posts Changed header 12px to 14px Add now and next programs to homepage Add new button to programs Changed contact text Add fallback image to program guide Make items height equally in program guide
31 lines
1.6 KiB
PHP
31 lines
1.6 KiB
PHP
@php($now = new \DateTime("now"))
|
|
@foreach($days as $title => $day)
|
|
<div id="tab_radio_items_{{$title}}" class="tab_content{{(!$date && $title == 'today') || ($date && $title == 'custom') ? ' active' : ''}}">
|
|
<div class="row">
|
|
@if(isset($schedule[$day]) && $schedule[$day])
|
|
@foreach($schedule[$day] as $item)
|
|
@php($isCurrent = ($now >= $item['starttime']) && ($now <= $item['endtime']))
|
|
<div class="col-12 col-md-3">
|
|
<a class="box full-width full-height" href="{{route('programma') . $item['program']->url}}"
|
|
title="{{$item['program']->name . ($item['program']->tagline ? "\n" . $item['program']->tagline : "")}}">
|
|
<img src="{{$item['program']->image ?? 'images/noimage.png'}}">
|
|
<div class="program-title">
|
|
@if($isCurrent)
|
|
<div class="current-marker"><span>On air</span></div>
|
|
@endif
|
|
{{$item['program']->name}}
|
|
</div>
|
|
<div class="program-times"><i class="fa-regular fa-clock"></i>
|
|
{{$item['starttime']->format('H:i')}} – {{$item['endtime']->format('H:i')}}
|
|
</div>
|
|
</a>
|
|
</div>
|
|
@endforeach
|
|
@else
|
|
<div class="no-results col-12">Geen resultaten gevonden.</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
|