@php $field = 'block w-full rounded-lg border border-lms-line bg-white px-3.5 py-2.5 text-sm text-lms-ink shadow-sm focus:border-lms-blue focus:outline-none focus:ring-2 focus:ring-lms-blue/20'; $pdfMaxMb = (int) max(1, round(config('lms_media.pdf.max_kilobytes', 20480) / 1024)); @endphp
@csrf @method('PUT')
← {{ $course->title }}

{{ $subject->title }}

Cancel
@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif
{{-- Details --}}

Lesson details

{{-- Video --}}

Learning video

Upload large files in chunks · up to {{ $videoUpload['max_label'] }}

Uploads attach to this lesson immediately — you don’t need to hit Save for the video itself. Save still stores title, notes, publish state, and links below.

Uploaded file is preferred when both are set.

@if ($lesson->video_url) @endif
@if ($lesson->embedVideoUrl() && ! $lesson->video_path)
@endif
{{-- PDF --}}

PDF

@if ($lesson->pdf_path) @endif