@extends('components.app-layout') @section('title', 'Edit Document') @section('content')

Edit Document

Update document information and file

@csrf @method('PUT')
@error('title')

{{ $message }}

@enderror
@error('description')

{{ $message }}

@enderror
@error('document_category_id')

{{ $message }}

@enderror @if($categories->isEmpty())
No categories available. Create a category first
@endif

Current File

{{ $document->file_name }}
{{ number_format($document->file_size / 1024, 2) }} KB • Uploaded {{ $document->created_at->format('M j, Y') }}
Download

or drag and drop

PDF, DOC, DOCX, TXT, JPG, JPEG, PNG up to 10MB

Leave empty to keep current file

@error('file')

{{ $message }}

@enderror
is_printable) ? 'checked' : '' }} class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
is_active) ? 'checked' : '' }} class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
Cancel
@push('scripts') @endpush @endsection