{{-- HEADER --}}
@if ($logo) {{ $logo->name }} @else {{ ($achat->item_achats->first()?->store)->name }} @endif
{{ ($achat->item_achats->first()?->store)->address }}
{{ ($achat->item_achats->first()?->store)->contact }}

FACTURE D’ACHAT

N° : {{ $achat->reference }}
Date : {{ \Carbon\Carbon::parse($achat->date)->format('d/m/Y') }}
{{-- INFOS --}}

Boutique

Nom : {{ ($achat->item_achats->first()?->store)->name }}

Adresse : {{ ($achat->item_achats->first()?->store)->address }}

Contact : {{ ($achat->item_achats->first()?->store)->contact }}

Fournisseur

Entreprise : {{ $achat->supplier->company }}

Contact : {{ $achat->supplier->contact }}

Adresse : {{ $achat->supplier->address }}

{{-- TABLE --}} @foreach ($details as $key => $item) @endforeach
# Article Quantité Prix Achat Total
{{ $key + 1 }} {{ $item->article->name }} {{ $item->quantity }} {{ money($item->price) }} {{ money($item->quantity * $item->price) }}
{{-- TOTAL --}}
TOTAL GÉNÉRAL {{ money($amount_achat->amount_items) }}
{{-- FOOTER --}}