@if(request()->is('*-pdf')) @php $company = \App\Models\Company::all()->last() @endphp
{{ $company->address }}
@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
Tél : {{ $phones->join(', ') }}
E-mail: {{ $company->email1 ?? '' }}

@endif

Liste des sorties


@foreach($sells as $sell) @endforeach
Date Code Sortie Client Produits TypeSortie Paiement TVA Total Statut
{{ \Carbon\Carbon::create($sell->date)->isoFormat('ll') }}
{{ ($sell->code)?$sell->code:"" }}
{{ ($sell->customer)?$sell->customer->name:"" }}
@php $achats = json_decode($sell->achats); @endphp
@foreach($achats as $achat) {{ $achat->sell_quantity }} {{ ($achat->sell_measure->unit)??json_decode($achat->sell_measure)->unit }}(s) de {{ ($achat->product->name)??json_decode($achat->product)->name }},
@endforeach
{{ $sell->outType->name }}
{{ (isset($sell->paymentMethod))?$sell->paymentMethod->method:null }}
{{ $sell->tva }}
{{ number_format($sell->total , 2, ',', ' ') }} FCFA
{{ $sell->state->name }}

Créer le {{ \Carbon\Carbon::now()->isoFormat('lll') }}