@extends('front.practitioner.import.template.import') @section('content')

Create content

@if(isset($lessonData) && !empty($lessonData))
{{-- lesson_status)) checked @endif @if(isset($lessonData->lesson_status) && $lessonData->lesson_status == 'publish') checked @endif > --}} id ?? '') }} id="lesson_status_toggle" {{ $lessonData->lesson_status == 'publish' ? 'checked' : '' }}>
Preview {{-- Preview --}}
@endif
Select what media you would like to attach to this post.
@csrf @php $hasThumbnail = !empty($lessonData->lesson_thumbnail) && File::exists(storage_path('app/public/course_images/' . $lessonData->lesson_thumbnail)); @endphp
{{-- --}} Lesson Thumbnail

Upload thumbnail

Recommended size

1280 x 720 px

{{--

Upload thumbnail

--}}
@if(request()->has('module_id')) @elseif(isset($lessonData->course_module_id)) @endif
{{--

Drag and drop image here

- or -
@if(isset($lessonData) && $lessonData->lesson_thumbnail) @php $thumbnailimageName = $lessonData->lesson_thumbnail; $thumbnaildisplayName = $thumbnailimageName; if ($thumbnailimageName && preg_match('/(.+)_\d+\.(\w+)$/', $thumbnailimageName, $thumbnailmatches)) { $thumbnaildisplayName = $thumbnailmatches[1] . '.' . $thumbnailmatches[2]; } @endphp
photo
{{ $thumbnaildisplayName}} @else @endif
photo
Image1.jpg
--}}
Accepted files: PDF, Word, Excel, PPT, JPEG, PNG

Drag and drop image here

- or -
@if(isset($lessonData) && $lessonData->files && count($lessonData->files)) @foreach($lessonData->files as $file) @php $displayName = $file->lesson_file_name; if (preg_match('/(.+)_\d+\.(\w+)$/', $file->lesson_file_name, $matches)) { $displayName = $matches[1] . '.' . $matches[2]; } @endphp
file
{{ $displayName }}
@endforeach @else
@endif {{--
photo
2HackseBook.pdf --}}
@endsection @section('import-scripts') @endsection