@extends('layouts.app') @section('title', 'Détails du client') @section('page-title', $client->nom) @section('content') @php $formatPrice = fn($n) => number_format($n, 0, ',', ' ') . ' FCFA'; @endphp
{{ $client->reference }}
{{ $client->nom }}
{{ $client->telephone }}
{{ $client->adresse ?? '—' }}
{{ $formatPrice($client->caution) }}
| Réf. | Produit | Magasin | Montant | Statut paiement | Montant payé | Restant | Date |
|---|---|---|---|---|---|---|---|
| {{ $vente->reference }} | {{ $vente->produit?->designation ?? '—' }} | {{ $vente->magasin?->nom ?? '—' }} | {{ $formatPrice($vente->montant) }} | {{ $statutLabel }} | {{ $formatPrice($montantPaye) }} | {{ $formatPrice($restant) }} | {{ $vente->date_vente?->format('d/m/Y') ?? '—' }} |
| Aucun achat enregistré | |||||||