Edit Tutorial
@csrf @method('PUT') {{-- ── Primary Content Column (Left - 2/3) ────────────────────── --}}
{{-- Card: Info Umum --}}

Informasi Umum

{{-- Tipe Badge (readonly) --}}

Tipe Tutorial

@if($tutorial->type === 'video') Video @else Artikel @endif

Tipe tidak dapat diubah setelah tutorial dibuat.

{{-- Judul --}}
@error('title')

{{ $message }}

@enderror
{{-- Hubungkan ke Produk --}}

Jika dipilih, tutorial ini hanya akan dapat diakses dan dilihat oleh pembeli yang telah membeli produk tersebut.

@error('product_id')

{{ $message }}

@enderror
{{-- Deskripsi Singkat --}}
{{-- Card: Konten Video --}} @if($tutorial->type === 'video')

Konten Video

@if($tutorial->video_source === 'youtube') {{-- Current YouTube Preview --}} @if($tutorial->youtube_id)

Video YouTube Aktif

@endif
@else {{-- Upload Video File --}} @if($tutorial->video_path)

Berkas Video Aktif

{{ basename($tutorial->video_path) }}

Tersimpan di Storage Publik

@endif

Format: MP4, WebM, Ogg. Maks 300 MB.

@endif
@endif {{-- Card: Konten Artikel --}} @if($tutorial->type === 'article')

Konten Artikel

{{-- Editor --}}

Mendukung tag HTML dasar.

{{-- Attachment --}}
@if($tutorial->attachment_path)

{{ $tutorial->attachment_name }}

File Lampiran Saat Ini

@endif

Kosongkan jika tidak ingin mengganti. Format: PDF, ZIP, DOCX, XLSX, PPTX. Maks 50 MB.

@endif
{{-- ── Sidebar Column (Right - 1/3) ───────────────────────────── --}}
{{-- Card: Gambar & Status --}}

Gambar & Pengaturan

{{-- Thumbnail Preview & Upload --}}
@if($tutorial->thumbnail)
@endif
@error('thumbnail')

{{ $message }}

@enderror

{{-- Sort Order --}}

Angka terkecil tampil paling atas

{{-- Status --}}
{{-- Card: Actions --}}
Batal