@extends('layouts.app') @section('title', $video->title . ' - Educational Videos') @section('content')

{{ $video->title }}

@if($video->classModel || $video->subject || $video->topic)
@if($video->classModel) {{ $video->classModel->name }} @endif @if($video->subject) {{ $video->subject->name }} @endif @if($video->topic) {{ $video->topic }} @endif {{ $video->type }} @if($video->genre) {{ $video->genre }} @endif @if($video->rating > 0) ⭐ {{ number_format($video->rating, 1) }} @endif @if($video->is_premium) 🔒 Premium @endif
@endif
@if($video->player_code)
{!! trim($video->player_code) !!}
@elseif($video->video_hash) @else
@endif
@if($video->description)
Description

{{ $video->description }}

@endif
Video Details
@if($video->duration)
Duration: {{ $video->duration }} @if($video->duration_seconds) ({{ gmdate('H:i:s', $video->duration_seconds) }}) @endif
@endif @if($video->age_group)
Age Group: {{ $video->age_group }}
@endif @if($video->view_count > 0)
Views: {{ number_format($video->view_count) }}
@endif @if($video->rating > 0)
Rating: ⭐ {{ number_format($video->rating, 1) }} / 5.0 @if($video->rating_count > 0) ({{ $video->rating_count }} {{ Str::plural('rating', $video->rating_count) }}) @endif
@endif
Published: {{ $video->created_at->format('F d, Y') }}
@push('scripts') @if(!$video->player_code && !$video->video_hash) @endif @endpush @endsection