RAPPORT FACTURES

{{ $provider->business_name ?? $provider->first_name . ' ' . $provider->last_name }}

@if($dateFrom && $dateTo)

Période : {{ \Carbon\Carbon::parse($dateFrom)->format('d/m/Y') }} - {{ \Carbon\Carbon::parse($dateTo)->format('d/m/Y') }}

@else

Période : Toutes les factures

@endif

Généré le {{ now()->format('d/m/Y à H:i') }}

{{ $stats->count ?? 0 }} Factures
{{ number_format($stats->total ?? 0, 2, ',', ' ') }} {{ $currency }} Total encaissé
{{ number_format($stats->average ?? 0, 2, ',', ' ') }} {{ $currency }} Montant moyen
@if($payments->count() > 0) @foreach($payments as $payment) @endforeach
Date Client N° Facture Méthode Montant
{{ \Carbon\Carbon::parse($payment->payment_date)->format('d/m/Y') }} {{ $payment->client->first_name }} {{ $payment->client->last_name }} {{ $payment->invoice_number ?? '-' }} @php $methods = ['cash' => 'Espèces', 'card' => 'Carte', 'check' => 'Chèque', 'transfer' => 'Virement', 'other' => 'Autre']; echo $methods[$payment->method] ?? ucfirst($payment->method); @endphp {{ number_format($payment->amount, 2, ',', ' ') }} {{ $currency }}
TOTAL {{ number_format($stats->total ?? 0, 2, ',', ' ') }} {{ $currency }}
@else

Aucune facture trouvée pour cette période.

@endif