@vite(['resources/css/app.css', 'resources/js/app.js'])
@if($document->category) {{ $document->category->name }} @endif

{{ $document->title }}

{{ $document->description }}

{{ $document->created_at ? $document->created_at->format('d M Y') : 'N/A' }}
{{ $document->view_count ?? 0 }} views
@if($document->year)
Tahun {{ $document->year }}
@endif
@if($document->tags) @php $tags = is_array($document->tags) ? $document->tags : explode(',', $document->tags); $tags = array_map('trim', $tags); $tags = array_filter($tags); // Remove empty tags @endphp @if(count($tags) > 0)

Tags:

@foreach($tags as $tag) {{ $tag }} @endforeach
@endif @endif
@if($document->embed_url)
@else

Preview tidak tersedia

Dokumen ini tidak dapat ditampilkan langsung. Silakan buka melalui Google Drive.

@if($document->google_drive_link) Buka di Google Drive @endif
@endif