@extends('layouts.app') @section('title', 'Factures') @section('breadcrumb')
| Numéro | Date | Échéance | Client | Vente | Montant | Statut | Actions |
|---|---|---|---|---|---|---|---|
| {{ $invoice->invoice_number }} | {{ $invoice->date->format('d/m/Y') }} | {{ $invoice->due_date->format('d/m/Y') }} @if($invoice->status === 'emise' && $invoice->due_date->isPast()) En retard @endif | {{ $invoice->sale->customer->name ?? 'N/A' }} | {{ $invoice->sale->code ?? '-' }} | {{ number_format($invoice->amount, 0, ',', ' ') }} FCFA |
@if($invoice->status === 'payee')
Payée
@if($invoice->paid_at)
{{ $invoice->paid_at->format('d/m/Y') }}
@endif
@elseif($invoice->status === 'annulee')
Annulée
@else
Émise
@endif
|
@if($invoice->status === 'emise') @endif |