@extends('layouts.app') @section('title', 'Programme Schedule | Homeland Radio') @section('meta_description', 'See the weekly on-air schedule for Homeland Radio shows and hosts.') @section('canonical', route('schedule')) @section('content')

Programme Schedule

@php $schedule = optional($siteSettings)->radio_schedule ?? []; $grouped = collect($schedule)->groupBy(function($i){ return strtolower($i['day'] ?? ''); }); $days = ['monday','tuesday','wednesday','thursday','friday','saturday','sunday']; @endphp @if(empty($schedule))
Schedule will be published soon.
@else
@foreach($days as $day)
{{ $day }}
    @forelse(($grouped[$day] ?? collect()) as $item)
  • {{ $item['title'] ?? 'Show' }} @if(!empty($item['host'])) • {{ $item['host'] }} @endif
    {{ $item['start'] ?? '?' }} - {{ $item['end'] ?? '?' }}
  • @empty
  • No shows.
  • @endforelse
@endforeach
@endif
@endsection