@if($document->category)
@else
@endif
@php $categoryColor = $document->category ? $document->category->color : '#6B7280'; @endphp
@if($document->file_type === 'pdf') @elseif($document->file_type === 'doc') @else @endif
@if($document->category) {{ $document->category->name }} @endif

{{ $document->title }}

{{ $document->description }}

{{ $document->created_at ? $document->created_at->diffForHumans() : 'Recently' }}
{{ $document->view_count ?? 0 }} views

{{ $document->title }}

{{ $document->category ? $document->category->name : 'Uncategorized' }}

@if($document->embed_url)

Tidak bisa melihat preview? Beberapa dokumen Google Drive memiliki pembatasan keamanan.

@else

Preview tidak tersedia

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

Deskripsi

{{ $document->description }}

@if($document->tags && count($document->tags) > 0)
Tags:
@foreach($document->tags as $tag) {{ $tag }} @endforeach
@endif @if($document->year)
Tahun: {{ $document->year }}
@endif