Editing: step_1.blade.php
@push('styles_top') <link rel="stylesheet" href="/assets/vendors/summernote/summernote-bs4.min.css"> @endpush <div class="row"> <div class="col-12 col-md-4 mt-15"> @if(!empty(getGeneralSettings('content_translate'))) <div class="form-group"> <label class="input-label">{{ trans('auth.language') }}</label> <select name="locale" class="custom-select {{ !empty($bundle) ? 'js-edit-content-locale' : '' }}"> @foreach($userLanguages as $lang => $language) <option value="{{ $lang }}" @if(mb_strtolower(request()->get('locale', app()->getLocale())) == mb_strtolower($lang)) selected @endif>{{ $language }} {{ (!empty($definedLanguage) and is_array($definedLanguage) and in_array(mb_strtolower($lang), $definedLanguage)) ? '('. trans('public.content_defined') .')' : '' }}</option> @endforeach </select> </div> @else <input type="hidden" name="locale" value="{{ getDefaultLocale() }}"> @endif @if($isOrganization) <div class="form-group mt-15 "> <label class="input-label d-block">{{ trans('public.select_a_teacher') }}</label> <select name="teacher_id" class="custom-select @error('teacher_id') is-invalid @enderror"> <option {{ !empty($bundle) ? '' : 'selected' }} disabled>{{ trans('public.choose_instructor') }}</option> @foreach($teachers as $teacher) <option value="{{ $teacher->id }}" {{ !empty($bundle) && $bundle->teacher_id === $teacher->id? 'selected' : '' }}>{{ $teacher->full_name }}</option> @endforeach </select> @error('teacher_id') <div class="invalid-feedback"> {{ $message }} </div> @enderror </div> @endif <div class="form-group mt-15"> <label class="input-label">{{ trans('public.title') }}</label> <input type="text" name="title" value="{{ (!empty($bundle) and !empty($bundle->translate($locale))) ? $bundle->translate($locale)->title : old('title') }}" class="form-control @error('title') is-invalid @enderror" placeholder=""/> @error('title') <div class="invalid-feedback"> {{ $message }} </div> @enderror </div> <div class="form-group mt-15"> <label class="input-label">{{ trans('public.seo_description') }}</label> <input type="text" name="seo_description" value="{{ (!empty($bundle) and !empty($bundle->translate($locale))) ? $bundle->translate($locale)->seo_description : old('seo_description') }}" class="form-control @error('seo_description') is-invalid @enderror " placeholder="{{ trans('forms.50_160_characters_preferred') }}"/> @error('seo_description') <div class="invalid-feedback"> {{ $message }} </div> @enderror </div> <div class="form-group mt-15"> <label class="input-label">{{ trans('public.thumbnail_image') }}</label> <div class="input-group"> <div class="input-group-prepend"> <button type="button" class="input-group-text panel-file-manager" data-input="thumbnail" data-preview="holder"> <i data-feather="arrow-up" width="18" height="18" class="text-white"></i> </button> </div> <input type="text" name="thumbnail" id="thumbnail" value="{{ !empty($bundle) ? $bundle->thumbnail : old('thumbnail') }}" class="form-control @error('thumbnail') is-invalid @enderror" placeholder="{{ trans('forms.course_thumbnail_size') }}"/> @error('thumbnail') <div class="invalid-feedback"> {{ $message }} </div> @enderror </div> </div> <div class="form-group mt-15"> <label class="input-label">{{ trans('public.cover_image') }}</label> <div class="input-group"> <div class="input-group-prepend"> <button type="button" class="input-group-text panel-file-manager" data-input="cover_image" data-preview="holder"> <i data-feather="arrow-up" width="18" height="18" class="text-white"></i> </button> </div> <input type="text" name="image_cover" id="cover_image" value="{{ !empty($bundle) ? $bundle->image_cover : old('image_cover') }}" placeholder="{{ trans('forms.course_cover_size') }}" class="form-control @error('image_cover') is-invalid @enderror"/> @error('image_cover') <div class="invalid-feedback"> {{ $message }} </div> @enderror </div> </div> <div class="form-group mt-25"> <label class="input-label">{{ trans('public.demo_video') }} ({{ trans('public.optional') }})</label> <div class=""> <label class="input-label font-12">{{ trans('public.source') }}</label> <select name="video_demo_source" class="js-video-demo-source form-control" > @foreach(\App\Models\Webinar::$videoDemoSource as $source) <option value="{{ $source }}" @if(!empty($bundle) and $bundle->video_demo_source == $source) selected @endif>{{ trans('update.file_source_'.$source) }}</option> @endforeach </select> </div> </div> <div class="js-video-demo-other-inputs form-group mt-0 {{ (empty($bundle) or $bundle->video_demo_source != 'secure_host') ? '' : 'd-none' }}"> <label class="input-label font-12">{{ trans('update.path') }}</label> <div class="input-group js-video-demo-path-input"> <div class="input-group-prepend"> <button type="button" class="js-video-demo-path-upload input-group-text text-white panel-file-manager {{ (empty($bundle) or empty($bundle->video_demo_source) or $bundle->video_demo_source == 'upload') ? '' : 'd-none' }}" data-input="demo_video" data-preview="holder"> <i data-feather="upload" width="18" height="18" class="text-white"></i> </button> <button type="button" class="js-video-demo-path-links rounded-left input-group-text input-group-text-rounded-left text-white {{ (empty($bundle) or empty($bundle->video_demo_source) or $bundle->video_demo_source == 'upload') ? 'd-none' : '' }}"> <i data-feather="link" width="18" height="18" class="text-white"></i> </button> </div> <input type="text" name="video_demo" id="demo_video" value="{{ !empty($bundle) ? $bundle->video_demo : old('video_demo') }}" class="form-control @error('video_demo') is-invalid @enderror"/> @error('video_demo') <div class="invalid-feedback"> {{ $message }} </div> @enderror </div> </div> <div class="form-group js-video-demo-secure-host-input {{ (!empty($bundle) and $bundle->video_demo_source == 'secure_host') ? '' : 'd-none' }}"> <div class="input-group"> <div class="input-group-prepend"> <button type="button" class="input-group-text text-white"> <i data-feather="upload" width="18" height="18" class="text-white"></i> </button> </div> <div class="custom-file js-ajax-s3_file"> <input type="file" name="video_demo_secure_host_file" class="custom-file-input cursor-pointer" id="video_demo_secure_host_file" accept="video/*"> <label class="custom-file-label cursor-pointer" for="video_demo_secure_host_file">{{ trans('update.choose_file') }}</label> </div> <div class="invalid-feedback"></div> </div> </div> </div> </div> <div class="row"> <div class="col-12"> <div class="form-group"> <label class="input-label">{{ trans('public.description') }}</label> <textarea id="summernote" name="description" class="form-control @error('description') is-invalid @enderror" placeholder="{{ trans('forms.webinar_description_placeholder') }}">{!! (!empty($bundle) and !empty($bundle->translate($locale))) ? $bundle->translate($locale)->description : old('description') !!}</textarea> @error('description') <div class="invalid-feedback"> {{ $message }} </div> @enderror </div> </div> </div> @if($isOrganization) <div class="row"> <div class="col-6"> <div class="form-group mt-30 d-flex align-items-center"> <label class="cursor-pointer mb-0 input-label" for="privateSwitch">{{ trans('webinars.private') }}</label> <div class="ml-30 custom-control custom-switch"> <input type="checkbox" name="private" class="custom-control-input" id="privateSwitch" {{ (!empty($bundle) and $bundle->private) ? 'checked' : '' }}> <label class="custom-control-label" for="privateSwitch"></label> </div> </div> <p class="text-gray font-12">{{ trans('webinars.create_private_course_hint') }}</p> </div> </div> @endif @push('scripts_bottom') <script src="/assets/vendors/summernote/summernote-bs4.min.js"></script> @push('scripts_bottom') <script> var videoDemoPathPlaceHolderBySource = { upload: '{{ trans('update.file_source_upload_placeholder') }}', youtube: '{{ trans('update.file_source_youtube_placeholder') }}', vimeo: '{{ trans('update.file_source_vimeo_placeholder') }}', external_link: '{{ trans('update.file_source_external_link_placeholder') }}', } </script> @endpush @endpush
Save
Back