@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 produits


@foreach($products as $product) @php $stock = \App\Models\Stock::where('product_id', $product->id)->get()->last() @endphp @endforeach
Nom Quantité Disponible PU De Vente Statut
{{-- --}}
{{ $product->name }} #REF {{ $product->reference }} | CAT: {{ ($product->categories->pluck('name')->join(', '))??"" }}
{{ $product->in_detail_available_quantity }} {{ $product->unitMeasures?->first()?->unit .'s en Détail' }}
@if ($product->unitMeasures?->last()->unit != $product->unitMeasures?->first()->unit)
{{ $product->wholesale_available_quantity ?? 0 }} {{ $product->unitMeasures?->last()?->unit .'s en Gros' }}
@endif
{{ $product->unitMeasures?->first()?->pivot->unit_price }} FCFA / {{ $product->unitMeasures?->first()?->unit .'s' }} en Détail
@if ($product->unitMeasures?->last()?->unit != $product->unitMeasures?->first()?->unit)
{{ $product->unitMeasures?->last()?->pivot->unit_price }} FCFA / {{ $product->unitMeasures?->last()?->unit .'s' }} en Gros
@endif
@if($product->in_detail_available_quantity > ($product->security_stock * 2)) Disponible @elseif($product->in_detail_available_quantity != 0 && $product->security_stock > $product->in_detail_available_quantity) Bientôt en manque @push('scripts') @endpush @else En Manque @push('scripts') @endpush @endif

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