@php $course = $course ?? null; @endphp
— Select Category —
@foreach($categories as $cat)
category_id) == $cat->id)>{{ $cat->name }}
@endforeach
@foreach(['course','ebook','podcast','webinar','custom','free_resource'] as $type)
product_type ?? ($productType ?? 'course')) === $type)>{{ ucfirst(str_replace('_',' ', $type)) }}
@endforeach
@foreach(['free','trial','paid'] as $access)
access_type ?? 'paid') === $access)>{{ ucfirst($access) }}
@endforeach
@foreach(['draft','published','unpublished'] as $st)
status ?? 'draft') === $st)>{{ ucfirst($st) }}
@endforeach
@if(isset($instructors))
Instructor(s)
@foreach($instructors as $instructor)
id, old('instructor_ids', $course?->instructors?->pluck('id')->toArray() ?? [])))>{{ $instructor->name }}
@endforeach
Hold Ctrl/Cmd to select multiple instructors
@endif
Course Thumbnail
@if($course?->thumbnailUrl())
@endif
@error('thumbnail')
{{ $message }}
@enderror
is_free ?? false)) class="rounded border-slate-300 text-indigo-600">
Free Course
drip_enabled ?? false)) class="rounded border-slate-300 text-indigo-600">
Enable Drip Content
@if(isset($tags))
@endif