@if(request()->is('*-pdf')) @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(', ') }}

@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 Status
{{-- --}}
{{ $product->name }} #REF {{ $product->reference }} | CAT: {{ $product->category->name }}
{{ $product->wholesale_available_quantity }} {{ ($stock)? $stock->wholesaleMeasure->unit .'s' : '' }}
{{ $product->in_detail_available_quantity }} {{ ($stock)? $stock->inDetailMeasure->unit .'s en Détail' : '' }}
{{ $product->wholesale_unit_selling_price }} FCFA / {{ ($stock)? $stock->wholesaleMeasure->unit : '' }}
{{ $product->in_detail_unit_selling_price }} FCFA / {{ ($stock)? $stock->inDetailMeasure->unit : '' }} en Détail
@if($product->wholesale_available_quantity > ($product->security_stock * 2)) Disponible @elseif($product->wholesale_available_quantity != 0 && $product->security_stock >$product->wholesale_available_quantity) Bientôt en manque @push('scripts') @endpush @else En Manque @push('scripts') @endpush @endif

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