@extends('layouts.client') @section('title', 'Mes Factures') @push('styles') @endpush @section('content')
{{-- Hero --}}

đź“„ Mes Factures

Retrouvez toutes vos factures d'achat

Retour
{{-- Stats --}}
đź“‹
Factures
{{ $stats['total_count'] }}
đź’°
Total dépensé
{{ number_format($stats['total_amount'], 0, ',', ' ') }}€
đź“…
Ce mois
{{ number_format($stats['this_month'], 0, ',', ' ') }}€
📊
Cette année
{{ number_format($stats['this_year'], 0, ',', ' ') }}€
{{-- Filtres --}}
{{-- Liste --}}
@forelse($invoices as $invoice) @php $st = $invoice->status ?? 'issued'; $iconClass = match($st) { 'paid'=>'paid','refunded'=>'refunded', default=>'issued' }; $icon = match($st) { 'paid'=>'✅','refunded'=>'↩️', default=>'⏳' }; $badgeClass = match($st) { 'paid'=>'tp-inv-badge-paid','refunded'=>'tp-inv-badge-refunded', default=>'tp-inv-badge-issued' }; @endphp
{{ $icon }}

{{ $invoice->invoice_number }}

{{ $invoice->description }}

{{ $invoice->issued_at?->format('d/m/Y') }} · {{ $invoice->seller_name }}

{{ number_format($invoice->total, 2, ',', ' ') }} €

{{ $invoice->status_label }}
@empty
đź“­

Aucune facture trouvée

@endforelse
{{-- Pagination --}} @if($invoices->hasPages())
{{ $invoices->withQueryString()->links() }}
@endif
@endsection