@extends('layouts.app') @section('title', 'Home') @section('content') {{-- Hero Banner --}}
{{-- Gradient banner placeholder --}}
{{-- Dark overlay gradient --}}
{{-- Banner Content --}}
{{-- Logo placeholder --}}
TK
{{-- Text --}}

TTEOTK Devotionals

Your home for every TTEOTK devotional. Watch, discover, and create playlists.

{{ number_format($totalVideos) }} Videos | YouTube Channel
{{-- Today's Devotional / Featured Video --}} @if($featuredVideo)

@if($isTodayMatch) Today's Devotional @else Featured @endif

@if($isTodayMatch) {{ $devotionalDate->format('F j') }} @endif
{{ $featuredVideo->title }} {{ $featuredVideo->formatted_duration }}
@endif {{-- Continue Watching (auth only) --}} @auth @if($continueWatching->isNotEmpty())

Continue Watching

View History
@foreach($continueWatching as $video)
{{ $video->title }}
{{ $video->formatted_duration }}

{{ $video->title }}

@endforeach
@endif @endauth {{-- Guest CTA: ONLY today's devotional + sign-up invitation --}} @guest
Free Daily Devotionals

Join us — new devotional every day.

Create a free account to unlock the full library, browse by book and month, save playlists, and receive new devotionals straight to your inbox.

By creating an account you'll be subscribed to daily devotionals. Unsubscribe anytime.

@endguest {{-- The library (Browse by Book, by Month, View All) is gated behind auth --}} @auth {{-- Browse by Category --}} @if($categories->isNotEmpty())

Browse by Book

@foreach($categories as $category) {{ $category->name }} ({{ $category->videos_count }}) @endforeach
@endif {{-- Browse by Month --}} @if(isset($videosByMonth) && $videosByMonth->isNotEmpty()) @foreach($videosByMonth as $monthName => $monthVideos)

{{ $monthName }}

({{ $monthVideos->count() }} devotionals)
View All
@foreach($monthVideos->take(8) as $video)
{{ $video->title }}
{{ $video->formatted_duration }}

{{ $video->title }}

@endforeach
@if($monthVideos->count() > 8)
View all {{ $monthVideos->count() }} {{ $monthName }} devotionals →
@endif
@endforeach @endif {{-- View All Videos Button --}}
View All {{ number_format($totalVideos) }} Videos
@endauth {{-- Email subscription popup (Alpine-driven, 8s delay, 30-day suppression) --}} @guest @include('partials.subscribe-popup') @endguest @endsection