@props(['doc']) @php $status = $doc->status?->value; @endphp
{{-- Zone cliquable → fiche du document --}}
@if ($doc->thumbnail_path) @else
@endif $status === 'processed', 'bg-amber-100 text-amber-700 dark:bg-amber-500/20 dark:text-amber-300' => $status === 'needs_review', 'bg-sky-100 text-sky-700 dark:bg-sky-500/20 dark:text-sky-300' => in_array($status, ['uploaded', 'processing'], true), 'bg-rose-100 text-rose-700 dark:bg-rose-500/20 dark:text-rose-300' => $status === 'failed', ])>{{ $doc->status?->label() }}

{{ $doc->title ?: $doc->original_filename }}

{{ $doc->document_type?->label() ?? 'Type inconnu' }} @if ($doc->data?->vendor) · {{ $doc->data->vendor->name }} @endif

@if ($doc->data?->amount_total) {{ number_format((float) $doc->data->amount_total, 2, ',', ' ') }} € @else {{ $doc->uploaded_at?->isoFormat('D MMM YY') }} @endif
{{-- Actions rapides --}}
Télécharger