@extends('layouts.app') @section('title', 'Tableau de bord') @section('breadcrumb', 'Tableau de bord') @section('content')
| N° Document | Type | Client | Date | Montant TTC | Statut |
|---|---|---|---|---|---|
| {{ $doc->numero }} | {{ ucfirst(str_replace('_', ' ', $doc->type)) }} | {{ $doc->client?->nom ?? '—' }} | {{ $doc->date->format('d/m/Y') }} | {{ number_format($doc->total_ttc, 3, ',', ' ') }} TND | @php $badge = match($doc->statut) { 'valide', 'facture' => 'success', 'annule' => 'danger', 'brouillon' => 'muted', default => 'info', }; @endphp {{ ucfirst($doc->statut) }} |
|
Aucun document |
|||||