@extends('layouts.erp') @section('title', 'Ventes') @section('page_title', 'Ventes') @section('page_sub', 'Factures, devis, livraisons, avoirs · '.now()->translatedFormat('F Y')) @section('content') @php $fmt = fn ($n) => number_format($n, 0, ',', ' ').' F'; $type = request('type'); @endphp
| Document | Date | Client | Objet | Montant | Statut | |
|---|---|---|---|---|---|---|
| {{ $item->number }} {{ strtoupper($item->document_type) }} |
{{ optional($item->sale_date)->format('d/m/Y') }} | {{ $item->client->name ?? '—' }} | {{ $item->items->first()->description ?? $item->notes ?? '—' }} | {{ $fmt($item->total) }} | @php $map = ['paye'=>'ok','partiel'=>'warn','valide'=>'info','brouillon'=>'gray','annule'=>'bad']; @endphp {{ ucfirst($item->status) }} |
|
Aucun document. | ||||||