@extends('admin.layouts.app') @section('title', 'Demo Video Details') @section('content')

Demo Video Details

{{ $demo_video->title }}
Edit @if($demo_video->provider === 'vimeo' && !empty($demo_video->provider_id)) @endif
@if($demo_video->description)

{{ $demo_video->description }}

@endif
Video Information
@if($demo_video->provider_id) @endif
Provider: {{ ucfirst($demo_video->provider) }}
Video URL: @if(str_starts_with($demo_video->provider_id, 'http')) {{ $demo_video->provider_id }} @else {{ $demo_video->provider_id }} @endif
Status: {{ $demo_video->status ? 'Active' : 'Inactive' }}
Sort Order: {{ $demo_video->sort_order ?? 0 }}
Course Information
@if($demo_video->course) @endif @if($demo_video->unit) @endif @if(!$demo_video->course && !$demo_video->unit) @endif
Course: {{ $demo_video->course->title }}
Unit: {{ $demo_video->unit->title }}
No course/unit assigned
@if($demo_video->videoLinks && $demo_video->videoLinks->count() > 0)
Video Links
@foreach($demo_video->videoLinks as $link) @endforeach
Quality Type URL Status
{{ $link->quality_label }} @if($link->is_downloadable) Download @else Stream @endif {{ $link->url }} {{ $link->status ? 'Active' : 'Inactive' }}
@else
No video links available. @if($demo_video->provider === 'vimeo' && !empty($demo_video->provider_id)) @endif
@endif
Thumbnail
@if($demo_video->thumbnail_url && isset($demo_video->thumbnail_url['thumb'])) {{ $demo_video->title }} @else
@endif
Timestamps
Created: {{ $demo_video->created_at->format('M d, Y H:i') }}
Updated: {{ $demo_video->updated_at->format('M d, Y H:i') }}
@endsection