@push('pluginCss') @endpush

{{ $course->exists ? 'Edit Course' : 'Create a New Course' }}

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {!! Form::model($course, [ 'class' => 'form-horizontal', 'id' => 'courseForm', 'files' => true, 'autocomplete' => 'off', 'method' => $course->exists ? 'put' : 'post', 'route' => $course->exists ? ['courses.update', $course->id] : ['courses.store'] ]) !!}
{!! Form::text('title', null, [ 'class' => 'form-control', 'maxlength' => 100, 'required' => true ]) !!} @error('title') {{ $message }} @enderror
{!! Form::select('category_id', ['' => '-- Select Any --'] + $categories, null, [ 'class' => 'form-select' ] ); !!} @error('category_id') {{ $message }} @enderror
{!! Form::textarea('short_desc', null, [ 'class' => 'form-control', 'rows' => 2 ]) !!}
{!! Form::textarea('description', null, [ 'class' => 'form-control', 'rows' => 5, 'required' => true ]) !!}
{!! Form::textarea('disclosure', null, [ 'class' => 'form-control', 'rows' => 2 ]) !!}
Media Section
Dropzone
@error('thumbnail') {{ $message }} @enderror
@if (!empty($course->thumbnail))
@endif
{!! Form::radio('trailer_storage_type', 'local', null, [ "class" => "form-check-input trailer-video-type show-hide-trigger", "data-hide-target" => ".tlVidTypeInputBox", "data-show-target" => "#tlVidTypeLocalInputBox" ]); !!}
{!! Form::radio('trailer_storage_type', 'external_web', null, [ "class" => "form-check-input trailer-video-type show-hide-trigger", "data-hide-target" => ".tlVidTypeInputBox", "data-show-target" => "#tlVidTypeExtInputBox" ]); !!}
@error('trailer') {{ $message }} @enderror
Maximum file size allowed 1GB, For larger files use Vimeo/Youtube.
{!! Form::text('trailer_ext_link', null, [ 'class' => 'form-control', ]) !!} @error('trailer_ext_link') {{ $message }} @enderror
Youtube/Vimeo link starting with https://
@if (!empty($course->trailer))
@endif
@error('trailer_cover') {{ $message }} @enderror
@if (!empty($course->trailer_cover))
@endif
Pricing Options
Directory Options
{!! Form::close() !!}
@push('pluginScripts') @endpush @push('scripts') @endpush