@extends('layouts.app') @section('title', __('Delegation Documents')) @section('content')

{{ __('Delegation Documents') }}

@can('delegation.create') {{ __('Upload Document') }} @endcan
@if (session('success'))
{{ session('success') }}
@endif
@forelse ($records as $document) @empty @endforelse
{{ __('Document') }}{{ __('Type') }}{{ __('Tracking') }}{{ __('Candidate') }}{{ __('Uploaded') }}{{ __('Actions') }}
{{ $document->original_name ?? basename($document->file_path) }} {{ $document->type === 'e_duty' ? __('E-Duty') : __('Delegation') }} {{ $document->delegation?->recruitment?->tracking_number ?? '—' }} {{ $document->delegation?->recruitment?->passportHolder?->full_name ?? '—' }} {{ $document->created_at?->format('Y-m-d') }} {{ __('View') }} @can('delegation.edit') {{ __('Edit') }} @endcan @can('delegation.download') {{ __('Download') }} @endcan
{{ __('No delegation documents found.') }}
{{ $records->links() }} @endsection