Create content
Select what media you would like to attach to this post.
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
{{ $thumbnaildisplayName}}
@else
@endif
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
{{ $displayName }}
@endforeach
@else
@endif
{{--
2HackseBook.pdf
--}}