Tutorial
{{-- ── Back Button & Breadcrumb ────────────────────────────────────── --}}
Kembali ke Tutorial / {{ $tutorial->title }}
{{-- ═══════════════════════════════════════ VIDEO LAYOUT ══════════════ --}} @if($tutorial->type === 'video') {{-- Video Player --}}
{{-- Type Badge --}}
Video Tutorial {{ $tutorial->created_at->translatedFormat('d F Y') }}
{{-- Title --}}

{{ $tutorial->title }}

@if($tutorial->description)

{{ $tutorial->description }}

@endif
{{-- Video Embed --}}
@if($tutorial->video_source === 'youtube' && $tutorial->youtube_id)
@elseif($tutorial->video_source === 'upload' && $tutorial->video_path)
@else

Video tidak tersedia.

@endif
{{-- ══════════════════════════════════════ ARTICLE LAYOUT ═════════════ --}} @else {{-- Article Header Card --}}
Artikel Tutorial {{ $tutorial->created_at->translatedFormat('d F Y') }}

{{ $tutorial->title }}

@if($tutorial->description)

{{ $tutorial->description }}

@endif
{{-- Article Content --}} @if($tutorial->content)
{!! $tutorial->content !!}
@endif {{-- Attachment Download Card --}} @if($tutorial->attachment_path && Storage::disk('public')->exists($tutorial->attachment_path))

File Attachment

{{ $tutorial->attachment_name }}

@php $size = Storage::disk('public')->size($tutorial->attachment_path); $sizeLabel = $size > 1048576 ? round($size / 1048576, 1) . ' MB' : round($size / 1024, 0) . ' KB'; @endphp

Ukuran: {{ $sizeLabel }}

Unduh File
@endif @endif