{{-- ===================================================================== COURSES SHARED FORM PARTIAL Used by: admin/courses/create.blade.php & admin/courses/edit.blade.php ===================================================================== --}}
{{-- ╔══════════════════════════════════════════════╗ ║ LEFT COLUMN (main content, spans 2/3) ║ ╚══════════════════════════════════════════════╝ --}}
{{-- ── Title ─────────────────────────────────────────────── --}}
@error('title')

{{ $message }}

@enderror
{{-- ── Slug ──────────────────────────────────────────────── --}}
/courses/
@error('slug')

{{ $message }}

@enderror
{{-- ── Short Description ─────────────────────────────────── --}}
@error('short_description')

{{ $message }}

@enderror
{{-- ── Long Description (TinyMCE) ───────────────────────── --}}
@error('long_description')

{{ $message }}

@enderror
{{-- ── SEO Section ────────────────────────────────────────── --}}

SEO / Meta Settings

Improve this course page's search engine visibility

{{-- Google SERP preview --}}

Google Preview

{{ old('meta_title', $course->meta_title ?? $course->title ?? 'Course Title') }}

{{ url('/courses/' . ($course->slug ?? 'course-slug')) }}

{{ old('meta_description', $course->meta_description ?? $course->short_description ?? 'Meta description will appear here (150–160 chars).') }}

{{-- Meta Title --}}
0 / 60
@error('meta_title')

{{ $message }}

@enderror
{{-- Meta Description --}}
0 / 160
@error('meta_description')

{{ $message }}

@enderror
{{-- Meta Keywords --}}

Separate keywords with commas

@error('meta_keywords')

{{ $message }}

@enderror
{{-- END left column --}} {{-- ╔══════════════════════════════════════════════╗ ║ RIGHT COLUMN (sidebar, spans 1/3) ║ ╚══════════════════════════════════════════════╝ --}}
{{-- ── Publish / Status ─────────────────────────────────── --}}

Publish Settings

{{-- Active toggle --}}

Visibility

{{-- Featured toggle --}}

Featured

{{-- Submit buttons --}}
Cancel
{{-- ── Featured Image ────────────────────────────────────── --}}

Featured Image

{{-- Current image (edit mode) --}} @if($course && $course->featured_image && file_exists(public_path('uploads/courses/'.$course->featured_image)))

Current Image

{{ $course->title }}
Upload new to replace
@endif {{-- Upload area --}}
@error('featured_image')

{{ $message }}

@enderror
{{-- ── Course Details ────────────────────────────────────── --}}

Course Details

{{-- Duration --}}
{{-- Certification --}}
{{-- Starting Date --}}
{{-- Mode --}}
{{-- Max Students --}}
{{-- Sort Order --}}

Lower number = shown first on homepage

{{-- ── Appearance ────────────────────────────────────────── --}}

Card Appearance

{{-- Icon class --}}

Used on card when no image. E.g. fas fa-graduation-cap

Course cards use the site brand color #027fc5.
{{-- END right column --}}
{{-- END grid --}} @push('scripts') @endpush