@php $actionBtnClass = 'inline-flex h-8 w-8 items-center justify-center rounded-xl border border-white/70 bg-white/55 text-[#E83646] shadow-[0_6px_14px_rgba(15,23,42,0.08)] backdrop-blur transition hover:-translate-y-0.5 hover:bg-rose-50/90 hover:shadow-[0_8px_16px_rgba(232,54,70,0.2)]'; @endphp
@forelse ($invoices as $invoice) @php $previewUrl = route('credit-card-invoices.file', $invoice); $downloadUrl = $previewUrl.'?download=1'; @endphp @empty @endforelse
Date Carte Libelle Montant Fichier Taille Actions
{{ $invoice->invoice_date->format('d/m/Y') }} {{ $invoice->creditCard?->name ?? '-' }} {{ $invoice->label ?: '-' }} {{ $invoice->formattedAmount() }}
@if($invoice->isImage()) @else
{{ $invoice->extension() ?: '?' }}
@endif {{ $invoice->original_name }}
{{ $invoice->formattedSize() }}
@if($invoice->isPreviewable()) @endif
@if (($filters['search'] ?? '') !== '' || ($filters['credit_card_id'] ?? '') || ($filters['date_from'] ?? '') || ($filters['date_to'] ?? '')) Aucune facture ne correspond aux filtres. @else Aucune facture carte bancaire pour le moment. @endif
{{ $invoices->links() }}