@extends('layouts.admin') @section('title', $document->file_name) @section('content')

{{ $document->file_name }}

Back to Folder @if($document->download_url) Download @endif
Document Preview
@if(str_contains($document->file_path, ['.pdf', 'pdf'])) @elseif(str_contains($document->file_path, ['.jpg', 'jpeg', 'png', 'gif', 'image'])) @else
Preview not available

Download to view this file type.

@endif
Details
  • Folder: {{ $document->folder->name }}
  • Month: {{ $document->folder->month->name }}
  • Category: {{ $document->folder->month->category->name }}
  • Uploaded By: {{ $document->uploader->name ?? 'Unknown' }}
  • Status: {{ ucfirst($document->status ?? 'pending') }}
  • Uploaded: {{ $document->created_at->format('M d, Y H:i') }}
  • @if($document->remarks)
  • Remarks: {{ $document->remarks }}
  • @endif
@if($document->download_url) Download File @endif
Back to Documents @endsection