@extends('layouts.app') @section('title', 'Détails de la vente - Bar & Maquis') @section('content')

Facture {{ $sale->invoice_number }}

Vente du {{ $sale->created_at->format('d/m/Y à H:i') }}

@if($sale->customer_name)

Client: {{ $sale->customer_name }}

@endif

Vendu par

{{ $sale->employee->name }}

Produits vendus

@foreach($sale->items as $item) @endforeach
Produit Catégorie Quantité Prix unitaire Total
{{ $item->product->name }} {{ $item->product->category->name }} {{ $item->quantity }} {{ $item->product->unit }} {{ number_format($item->unit_price, 0, ',', ' ') }} FCFA {{ number_format($item->total_price, 0, ',', ' ') }} FCFA

Total HT

{{ number_format($sale->total_amount, 0, ',', ' ') }} FCFA

Profit

{{ number_format($sale->profit, 0, ',', ' ') }} FCFA

Méthode de paiement

{{ $sale->payment_method }}

@if($sale->notes)

Notes

{{ $sale->notes }}

@endif
@if(!auth()->user()->isVendeur())
@csrf @method('DELETE')
@endif
@endsection