@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 ?? '' }}

Beauty Care & Fashion


@endif

Liste des stocks


{{-- --}} {{-- --}} @foreach($stocks as $stock) {{-- --}} {{-- --}} @endforeach
Date Produit Fournisseur Quantité InitialeTVAPU Achat PT Achat Statut
{{ \Carbon\Carbon::create($stock->date)->isoFormat('ll') }}
{{-- --}}
{{ $stock->product->name }} #REF {{ $stock->product->reference }} | CAT: {{ ($stock->product->categories->pluck('name')->join(', '))??"" }}
{{ ($stock->supplier->name)??"" }}
@if ($stock->product->unitMeasures?->last()->unit != $stock->product->unitMeasures?->first()->unit)
{{ $stock->wholesale_initial_quantity}} {{ $stock->wholesaleMeasure->unit }}s
1 {{ $stock->wholesaleMeasure->unit }} => @endif {{ $stock->in_detail_quantity }} {{ $stock->inDetailMeasure->unit }}s
{{ ($stock->tva)??0 }}
@if ($stock->product->unitMeasures?->last()->unit != $stock->product->unitMeasures?->first()->unit)
1 {{ $stock->wholesaleMeasure->unit }} = {{ $stock->wholesale_unit_purchase_price }} FCFA
@endif
1 {{ $stock->inDetailMeasure->unit }} = {{ $stock->in_detail_unit_purchase_price }} FCFA
{{ number_format($stock->total_purchase_cost , 2, ',', ' ') }} FCFA
{{ $stock->state->name }}

Liste générée le {{ \Carbon\Carbon::now()->isoFormat('lll') }}