@extends('layouts.app') @section('title', 'Programme Schedule') @section('meta_description', 'AIT Broadcasting Network full TV and Radio programme schedule') @section('content')
{{-- MAIN COLUMN --}}
{{-- PAGE HEADER --}}
Media

Programme Schedule

Today's TV and Radio schedule for AIT Broadcasting Network

{{-- TV SCHEDULE --}}
📺 AIT TV — Today's Schedule
{{ now()->format('l, d F Y') }}
@if($tvSchedule->count() > 0)
@foreach($tvSchedule as $schedule)
{{-- TIME --}}
{{ $schedule->formatted_start_time }}
{{ $schedule->formatted_end_time }}
{{-- SHOW INFO --}}
{{ $schedule->show->title }}
@if(isset($currentTvShow) && $currentTvShow && $currentTvShow->id === $schedule->id) ● ON AIR @endif @if($schedule->is_live) LIVE @else REPEAT @endif
@if($schedule->show->host_names)
Hosted by {{ $schedule->show->host_names }}
@endif @if($schedule->show->description)
{{ Str::limit($schedule->show->description, 120) }}
@endif
{{-- DURATION --}}
@php $start = \Carbon\Carbon::parse($schedule->start_time); $end = \Carbon\Carbon::parse($schedule->end_time); $duration = $start->diffInMinutes($end); @endphp {{ $duration }} mins
@endforeach
@else
No TV schedule available for today.
@endif
{{-- RADIO SCHEDULE --}}
📻 AIT Radio 89.7 FM — Today's Schedule
{{ now()->format('l, d F Y') }}
@if($radioSchedule->count() > 0)
@foreach($radioSchedule as $schedule)
{{-- TIME --}}
{{ $schedule->formatted_start_time }}
{{ $schedule->formatted_end_time }}
{{-- SHOW INFO --}}
{{ $schedule->show->title }}
@if(isset($currentRadioShow) && $currentRadioShow && $currentRadioShow->id === $schedule->id) ● ON AIR @endif
@if($schedule->show->host_names)
Hosted by {{ $schedule->show->host_names }}
@endif @if($schedule->show->description)
{{ Str::limit($schedule->show->description, 120) }}
@endif
{{-- DURATION --}}
@php $start = \Carbon\Carbon::parse($schedule->start_time); $end = \Carbon\Carbon::parse($schedule->end_time); $duration = $start->diffInMinutes($end); @endphp {{ $duration }} mins
@endforeach
@else
No Radio schedule available for today.
@endif
{{-- SIDEBAR --}} @include('partials.sidebar')
@endsection