@php // receive $spotlights collection $items = $stations ? $stations->map(function($station){ $on_air_now = $station->epgFeed()?->onAirAt(now()); $title = $on_air_now?->getTitle() ?? $station->title; $has_multilines = strpos($station->title, "\n"); if($has_multilines){ $title = \App\Helpers\FormattingHelper::explodeWithNewLine($title); }else{ $title = \App\Helpers\FormattingHelper::formatWithString($title); } return (object)[ 'image' => $station->getThumbnail(true), 'url' => $station->getUrl(), 'text' => $title, 'sub_thumbnail' => $on_air_now?->getBrand()?->getThumbnailForHomepage() ?? null, 'live' => true ]; }) : null; @endphp

Experience Christian audio like never before

@if(auth()->check()) @if ($latest_episodes->count() >= 4)

Latest Episodes For You

@foreach($latest_episodes as $item) @endforeach
@endif @if ($listenable_progress_items->count() >= 4)

Jump Back In

@foreach($listenable_progress_items as $item) @php if (!$item->listenable) { continue; } $type = $item->listenable_type === \App\Models\PodcastEpisode::class?'podcast':'audioSeries'; $text = !empty($item->listenable->episode_data->subtitle) ? $item->listenable->episode_data->subtitle : $item->listenable->intro; @endphp @endforeach
@endif @else @endif @if ($block = $thematic_blocks->firstWhere('position', 'after_our_picks')) @include('components.thematic-block', ['items' => $block->recommendations, 'title' => $block->title]) @endif

Recent Podcasts

@foreach($recent_podcasts as $item) @endforeach
@if ($block = $thematic_blocks->firstWhere('position', 'after_recent_podcasts')) @include('components.thematic-block', ['items' => $block->recommendations, 'title' => $block->title]) @endif

Recent Music

@foreach($recent_music as $item) @endforeach
@if ($block = $thematic_blocks->firstWhere('position', 'after_recent_music')) @include('components.thematic-block', ['items' => $block->recommendations, 'title' => $block->title]) @endif

Recent Sermons

@foreach($recent_sermons as $item) @endforeach
@if ($block = $thematic_blocks->firstWhere('position', 'after_recent_sermons')) @include('components.thematic-block', ['items' => $block->recommendations, 'title' => $block->title]) @endif @if ($promotional_blocks->count() >= 1) @endif @if ($block = $thematic_blocks->firstWhere('position', 'after_trending_audio')) @include('components.thematic-block', ['items' => $block->recommendations, 'title' => $block->title]) @endif @php $remaining_two_promo_blocks = $promotional_blocks->splice(2); @endphp

Explore

Sermons

@foreach($sermon_themes as $sermon_theme) @endforeach

Music

@foreach($music_genres as $music_genre) @endforeach