@extends('components.app-layout') @section('title', $document->title) @section('content')
Documents {{ $document->title }}

{{ $document->title }}

{{ $document->file_name }}

Download @if($document->canBePrinted())
@csrf
@endif Edit

Description

{{ $document->description ?: 'No description provided.' }}

Category

{{ $document->category->name }}

Status

@if($document->is_active) Active @else Inactive @endif @if($document->is_printable) Printable @else Not Printable @endif

Document Preview

Preview and interact with your document

@if(in_array(strtolower(pathinfo($document->file_name, PATHINFO_EXTENSION)), ['jpg', 'jpeg', 'png', 'gif', 'webp'])) {{ $document->title }} @elseif(strtolower(pathinfo($document->file_name, PATHINFO_EXTENSION)) === 'pdf') @else

{{ $document->title }}

Preview not available for this file type

@endif
Download @if($document->canBePrinted()) @else
Cannot Print
@endif Edit

Danger Zone

Delete Document

This action cannot be undone. The file will be permanently deleted.

@csrf @method('DELETE')
@endsection @include('components.document-preview-modal') @push('scripts') @endpush