@extends('layouts.app') @section('title', $doc->numero) @section('breadcrumb', 'Achat / '.$doc->numero) @section('content')
Fournisseur
{{ $doc->fournisseur?->nom ?? '-' }}
Statut
{{ ucfirst($doc->statut) }}
Date
{{ $doc->date->format('d/m/Y') }}
@if($doc->ref_doc_fou)
Réf. Fournisseur
{{ $doc->ref_doc_fou }}
@endif @if($doc->emplacement)
Emplacement
{{ $doc->emplacement->label }}
@endif @if($doc->type === 'br')
Stock mis à jour
@if($doc->stock_mis_a_jour) Oui @else Non @endif
@endif
Total HT{{ number_format($doc->total_ht,3,',',' ') }}
TVA{{ number_format($doc->total_tva,3,',',' ') }}
Total TTC{{ number_format($doc->total_ttc,3,',',' ') }}

Lignes

@foreach($doc->lignes as $i => $l) @endforeach
#DésignationQtéPU HTRemiseTVATotal HTTotal TTC
{{ $i+1 }} {{ $l->designation }}@if($l->produit)
{{ $l->produit->code_article }}
@endif
{{ number_format($l->qte,3,',',' ') }} {{ number_format($l->prix_unit_ht,3,',',' ') }} {{ $l->remise > 0 ? $l->remise.'%' : '-' }} {{ $l->tva?->taux ?? 0 }}% {{ number_format($l->total_ht,3,',',' ') }} {{ number_format($l->total_ttc,3,',',' ') }}
@endsection