@extends('layouts.app') @section('title', __('Delegation Document')) @section('content') @if (session('success'))
{{ session('success') }}
@endif

{{ __('Delegation Document') }}

@can('delegation.download') {{ __('Download') }} @endcan @can('delegation.edit') {{ __('Edit') }} @endcan {{ __('Back to List') }}
{{ __('File') }}
{{ $document->original_name ?? basename($document->file_path) }}
{{ __('Type') }}
{{ $document->type === 'e_duty' ? __('E-Duty') : __('Delegation') }}
{{ __('Tracking') }}
{{ $document->delegation?->recruitment?->tracking_number ?? '—' }}
{{ __('Candidate') }}
{{ $document->delegation?->recruitment?->passportHolder?->full_name ?? '—' }}
{{ __('Uploaded By') }}
{{ $document->uploader?->name ?? '—' }}
{{ __('Uploaded At') }}
{{ $document->created_at?->format('Y-m-d H:i') }}
@can('delegation.edit')
@csrf @method('DELETE') {{ __('Archive Document') }}
@endcan @endsection