@php
$statusClasses = [
'pending' => 'bg-yellow-100 text-yellow-800',
'processing' => 'bg-blue-100 text-blue-800',
'processed' => 'bg-green-100 text-green-800',
'failed' => 'bg-red-100 text-red-800',
];
$statusLabels = [
'pending' => 'Pendente',
'processing' => 'Processando',
'processed' => 'Processado',
'failed' => 'Falhou',
];
@endphp
{{ $statusLabels[$document->status] ?? $document->status }}
@php
$typeLabels = [
'invoice' => 'Fatura',
'receipt' => 'Recibo',
'contract' => 'Contrato',
'report' => 'Relatório',
'other' => 'Outro'
];
@endphp
{{ $typeLabels[$document->type] ?? $document->type }}
{{ number_format($document->size / 1024, 1) }} KB
{{ $document->mime_type }}
@if($document->priority && $document->priority !== 'normal')
@php
$priorityLabels = [
'high' => 'Alta',
'urgent' => 'Urgente'
];
$priorityClasses = [
'high' => 'bg-orange-100 text-orange-800',
'urgent' => 'bg-red-100 text-red-800'
];
@endphp
{{ $priorityLabels[$document->priority] ?? $document->priority }}
@endif
@if($document->client)
@endif
@if($document->tags)
@foreach(explode(',', $document->tags) as $tag)
{{ trim($tag) }}
@endforeach
@endif
{{ $document->created_at->format('d/m/Y H:i') }}
@if($document->processed_at)
{{ $document->processed_at->format('d/m/Y H:i') }}
@endif