{{-- Document register for a requisition (metadata + access-controlled downloads) --}} @php $me = auth()->user(); $visibleDocs = $requisition->documents->filter(fn ($d) => $d->isVisibleTo($me)); @endphp
Documents
{{ $visibleDocs->count() }}
@csrf
@error('file')
{{ $message }}
@enderror PDF, image, Office or CSV · max 20 MB.
@if($visibleDocs->isEmpty())

No documents you can access have been added to this requisition yet.

@else
@foreach($visibleDocs as $doc) @endforeach
DocumentTypeVer.AccessUploadedSize
{{ $doc->original_name }} @if($doc->is_confidential)Confidential@endif {{ $doc->document_type_label }} v{{ $doc->version_number }} {{ $doc->access_level }} {{ $doc->uploadedBy?->name ?? '—' }}
{{ $doc->created_at->format('d M Y') }}
{{ $doc->size_for_humans }} @if($me->role === \App\Models\User::ROLE_ADMIN || $doc->uploaded_by === $me->id)
@csrf @method('DELETE')
@endif
Documents are shown according to your access level; retention and confidentiality are recorded for each file. @endif