Program Content

Add Lessons to your program and setup all the info that is supposed to be contained in each of them.

@if ($errors->has('lessons'))
{{ $errors->first('lessons') }}
@endif
@if($lessons && count($lessons) > 0) @foreach ($lessons as $key => $lesson)
  • Lesson {{$loop->iteration}}
Delete

Lesson Title

@error('lessons.'.$key.'.title') {{ $message }} @enderror

URL video

@error('lessons.'.$key.'.url_video') {{ $message }} @enderror
@if (filter_var($lesson->url_video, FILTER_VALIDATE_URL)) @endif
@if(isset($video_files[$key]))

Video

@elseif($lesson->video_file && !isset($removed_existing_videos[$lesson->id]))

Video

Remove Video
@else

Upload video

@endif @error('video_files.{{$key}}') {{ $message }} @enderror @if ($errors->has("video_files.$key")) {{ $errors->first("video_files.$key") }} @endif

Content

@endforeach @endif {{--
  • Lesson 2
Delete

Lesson Title

URL video

Upload video

Content

Add Lesson
--}}
@if(isset($program)) {{-- Cancel --}} @endif