@extends('layouts.customadmin') @section('content')
{{ trans('global.edit') }} {{ trans('cruds.lesson.title_singular') }}
id]) }}" enctype="multipart/form-data"> @method('PUT') @csrf
@if($errors->has('course')) {{ $errors->first('course') }} @endif {{ trans('cruds.lesson.fields.course_helper') }}
@if($errors->has('title')) {{ $errors->first('title') }} @endif {{ trans('cruds.lesson.fields.title_helper') }}
@if($errors->has('thumbnail')) {{ $errors->first('thumbnail') }} @endif {{ trans('cruds.lesson.fields.thumbnail_helper') }}
@if($errors->has('short_text')) {{ $errors->first('short_text') }} @endif {{ trans('cruds.lesson.fields.short_text_helper') }}
@if($errors->has('long_text')) {{ $errors->first('long_text') }} @endif {{ trans('cruds.lesson.fields.long_text_helper') }}
@if($errors->has('video')) {{ $errors->first('video') }} @endif {{ trans('cruds.lesson.fields.video_helper') }}
@if($errors->has('position')) {{ $errors->first('position') }} @endif {{ trans('cruds.lesson.fields.position_helper') }}
is_published || old('is_published', 0) === 1 ? 'checked' : '' }}>
@if($errors->has('is_published')) {{ $errors->first('is_published') }} @endif {{ trans('cruds.lesson.fields.is_published_helper') }}
{{--
is_free || old('is_free', 0) === 1 ? 'checked' : '' }}>
@if($errors->has('is_free')) {{ $errors->first('is_free') }} @endif {{ trans('cruds.lesson.fields.is_free_helper') }}
--}}
@endsection @section('scripts') @endsection