@extends('layouts.app') @section('title', 'Course Videos') @section('content') @include('partials.flash')
arrow_back Builder

Videos · {{ $course->title }}

{{ $total }} video {{ \Illuminate\Support\Str::plural('slot', $total) }} · {{ $needing }} still need a video

@if($total === 0)
movie

No video blocks in this course

Add a Video block to a module in the builder, then upload the file and transcript here.

@else
@csrf {{-- Bulk uploader --}}
upload

Bulk upload videos

Pick several video files at once. They fill the empty slots below in course order (top to bottom). Review the mapping, add transcripts, then Save all. Accepts MP4 / WebM / Ogg, up to 100 MB each.

@foreach($groups as $group)

{{ $group['label'] }}

@foreach($group['slots'] as $slot)
{{-- Left: current video + replace --}}
@if($slot['source'] === 'upload' && $slot['url']) @elseif($slot['youtube_id']) play_circle YouTube @else
movie No video yet
@endif {{-- status badge --}} @if($slot['source'] === 'upload' && $slot['url']) Uploaded @elseif($slot['youtube_id']) YouTube @else Empty @endif

{{-- Right: title + transcript --}}
@endforeach
@endforeach
@endif @endsection