Attachments

@php $attachments = app(\App\Services\Inventory\AttachmentService::class) ->listForDocument( (int) (session('tenant_admin_tenant_id') ?? 0), $documentType, $documentId, ); @endphp @if($attachments->isNotEmpty()) @foreach($attachments as $attachment) @endforeach
FileUploadedAction
{{ $attachment->file_name }} {{ $attachment->created_at?->format('Y-m-d H:i') }} @include('admin.inventory.partials.action_icons', [ 'download' => route('admin.inventory.attachments.download', $attachment), 'delete' => ($documentStatus ?? '') === 'draft' ? [ 'action' => route('admin.inventory.attachments.destroy', $attachment), 'confirm' => 'Remove this file?', 'label' => 'Remove', ] : null, ])
@else

No attachments yet.

@endif
@csrf