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

{{ __('Agent Documents') }}

@can('agent.create')
{{ __('Upload Agent Document') }}
@csrf
@error('agent_id')
{{ $message }}
@enderror
@error('type')
{{ $message }}
@enderror
@error('file')
{{ $message }}
@enderror
@endcan
{{ __('Clear') }}
@forelse($records as $record)@empty@endforelse
{{ __('Agent') }}{{ __('Document') }}{{ __('Type') }}{{ __('Uploaded') }}{{ __('Size') }}{{ __('Actions') }}
{{ $record->agent?->name ?? '—' }}{{ $record->original_name ?: basename($record->file_path) }}{{ \Illuminate\Support\Str::headline($record->type) }}{{ $record->created_at?->format('Y-m-d') ?? '—' }}{{ $record->size ? number_format($record->size / 1024, 1).' KB' : '—' }}@if($record->agent){{ __('Download') }}{{ __('Agent') }}@can('agent.edit'){{ __('Edit') }}
@csrf @method('DELETE')
@endcan @endif
{{ __('No agent documents found.') }}
{{ $records->links() }} @endsection