@extends('admin.layout') @section('title', 'Factures') @section('content')
| Facture | Client | Période | Montant | Statut | Échéance | Actions |
|---|---|---|---|---|---|---|
|
{{ $invoice->invoice_number ?? 'N/A' }} {{ $invoice->invoice_date ? $invoice->invoice_date->format('d/m/Y') : 'N/A' }} |
{{ $invoice->company->name ?? 'N/A' }} {{ $invoice->company->contact_person ?? 'N/A' }} |
@if($invoice->period_start && $invoice->period_end) {{ $invoice->period_start->format('d/m') }} - {{ $invoice->period_end->format('d/m/Y') }} @else N/A @endif |
{{ number_format($invoice->amount_ttc ?? 0, 0, ',', ' ') }} FCFA HT: {{ number_format($invoice->amount_ht ?? 0, 0, ',', ' ') }} FCFA |
@switch($invoice->status) @case('paid') Payée @break @case('pending') En attente @break @case('overdue') En retard @break @default {{ $invoice->status ?? 'N/A' }} @endswitch | @if($invoice->due_date) {{ $invoice->due_date->format('d/m/Y') }} @if($invoice->due_date->isPast() && $invoice->status !== 'paid') ({{ $invoice->due_date->diffForHumans() }}) @endif @else N/A @endif |
@if($invoice->status !== 'paid')
@endif
|
| Aucune facture trouvée. | ||||||