@php $company = \App\Models\Company::all()->last() @endphp
{{ $company->name }}
@php $phones = collect(); ($company->phone1)?$phones->push($company->phone1): ''; ($company->phone2)?$phones->push($company->phone2): ''; ($company->phone3)?$phones->push($company->phone3): ''; ($company->phone4)?$phones->push($company->phone4): ''; @endphp
Tel: {{ $phones->join(', ') }}

{{--
--}}
Facture {{ \Carbon\Carbon::create($sell['date'])->isoFormat('ll') }} {{ (isset($sell['customer']))?$sell['customer']['name']:"" }}
@php $achats = json_decode($sell['achats']); $total = 0; @endphp @foreach($achats as $achat) @endforeach
Produit Quantité PU Remise Montant
{{ json_decode($achat->product)->name }}
{{ $achat->sell_quantity }}
{{ $achat->unit_selling_price }}
{{ $achat->discount }}
{{ $achat->amount }} @php $total += $achat->amount @endphp
TOTAL {{ number_format($total, 2, ',', ' ') }} FCFA