@extends('layouts.portal') @section('title', __('attachments.admin_title') . ' — ' . config('app.name')) @section('page_title', __('attachments.admin_title')) @section('page_subtitle', __('attachments.admin_subtitle')) @section('content')
@foreach (['pending', 'approved', 'rejected'] as $s) {{ __('attachments.statuses.' . $s) }} ({{ $counts[$s] ?? 0 }}) @endforeach
@forelse ($attachments as $attachment) @empty @endforelse
{{ __('attachments.file_title') }} {{ __('attachments.uploaded_by') }} {{ __('attachments.size') }}
{{ $attachment->title }} {{ strtoupper($attachment->file_type) }} · {{ $attachment->original_filename }} @if ($attachment->isRejected())

{{ __('attachments.rejection_reason') }}: {{ $attachment->rejection_reason }}

@endif
{{ $attachment->consultant?->name }} {{ $attachment->formatted_size }} {{ __('attachments.preview') }} {{ __('attachments.download') }} @if ($attachment->isPending())
@csrf
@endif
{{ __('attachments.no_pending') }}
{{ $attachments->links() }}
@endsection