@php $isEdit = isset($documents) && $documents->exists; @endphp
@csrf @if($isEdit) @method('PUT') @endif {{-- Title --}}
{{-- File Type --}}
{{-- File Upload --}}
@if($documents->file ?? false)

Current File: {{ $documents->file }}

@endif exists ?? false ? '' : 'required' }} accept=".pdf,.doc,.docx" onchange="validateFileType(this)"> {{-- File type hint --}} Allowed file types: PDF, DOC, DOCX only {{-- Error message container --}}
Please select only PDF, DOC, or DOCX files.
{{-- Associated Product --}}
{{-- Page Location --}}
{{-- Document Type --}}
{{-- Buttons --}}
@push('styles') @endpush @push('scripts') @endpush