@extends('layouts.app') @section('title', $video->title) @section('content')
{{-- Main Content --}}
{{-- Video Player --}}
{{-- Video Info --}}

{{ $video->title }}

{{-- Duration --}} {{ $video->formatted_duration }}
{{-- Action Buttons --}}
{{-- Download Button --}} Download {{-- Share Button --}} {{-- Watch on YouTube --}} YouTube {{-- Add to Playlist (Auth only) --}} @auth @if($playlists && $playlists->isNotEmpty())
{{-- Dropdown menu --}}
@else Create Playlist @endif @endauth
{{-- Description --}} @if($video->description)

Description

{{ $video->description }}

@endif {{-- My Notes & Reflections --}} @auth

My Notes & Reflections

{{ $currentYear }}
{{-- Year Tabs (if previous notes exist) --}} @if($previousNotes->isNotEmpty())
@foreach($previousNotes as $prevNote) @endforeach
@endif {{-- Current Year Note (editable) --}}
{{ $currentNote ? strlen($currentNote->content) : 0 }} / 10,000
@if($currentNote)
Last saved {{ $currentNote->updated_at->diffForHumans() }}
@endif
{{-- Previous Year Notes (read-only) --}} @foreach($previousNotes as $prevNote) @endforeach {{-- Link to Journal --}}
@else

Sign in to save your reflections on this devotional.

Sign In →
@endauth
{{-- Related Videos Sidebar --}}

Related Videos

@if($relatedVideos->isEmpty())

No related videos available.

@else @endif
@endsection @push('scripts') @endpush