Documents

@can('documents.upload') @endcan
@can('documents.upload') @if($openAD)
@endif @endcan @if($docs->count()) @can('synapse.use')@endcan @foreach($docs as $doc) @can('synapse.use') @endcan @endforeach
Name Type User DateScore
{{ $doc->display_name }}
{{ $doc->file_size }}
{{ $doc->type->display_name ?? '—' }} {{ $doc->user ? ($doc->user->name_first . " " . $doc->user->name_last) : 'Unknown' }} {{ $doc->created_at->diffForHumans() }}
{{ $doc->created_at->format('d/m/Y H:i') }}
@if(isset($latestRuns[$doc->id])) @php $run = $latestRuns[$doc->id]; $outcome = $run->result['outcome'] ?? ''; @endphp @elseif(in_array($doc->file_type, ['application/pdf', 'image/jpeg', 'image/png', 'image/webp', 'image/gif'])) @endif @can('documents.print') @if($doc->file_type == 'application/pdf') @endif @endcan @can('documents.delete') @endcan
{{ $docs->links() }} @can('synapse.use') @if($synapseOpen) @endif @endcan @else

No documents have been added.

@endif