{{ __('Documents') }}

@if ($categories->count() > 0)
@foreach ($categories as $category) @endforeach
@endif @if ($departments->count() > 0)
@foreach ($departments as $department) @endforeach
@endif
@if ($documents->count() > 0)
@foreach ($documents as $document)

{{ $document->getTranslation('title', app()->getLocale()) }}

@if ($document->document_type) {{ strtoupper($document->document_type) }} @endif
@if ($document->getTranslation('description', app()->getLocale()))

{{ Str::limit($document->getTranslation('description', app()->getLocale()), 150) }}

@endif {{-- Preview for images --}} @if ($document->document_type === 'image' && $document->file_path)
{{ $document->getTranslation('title', app()->getLocale()) }}
@endif {{-- Preview for videos --}} @if ($document->document_type === 'video' && $document->file_path)
@endif
@if ($document->document_type === 'file') {{ __('Downloads') }}: {{ $document->download_count }} @endif {{ __('Added') }}: {{ $document->created_at->format('M d, Y') }} @if ($document->category) {{ $document->category->getTranslation('name', app()->getLocale()) }} @endif
@if ($document->isViewableMedia()) {{ __('View') }} @endif
@endforeach
{{ $documents->links() }}
@else

{{ __('No documents found.') }}

@endif