@extends('layouts.app') @section('content')

Produits PDF Excel

@can('authorize', 'add_products') Ajouter Un Nouveau Produit @endcan
@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->categories->pluck('name')->join(','))??"" }}
{{ $product->wholesale_available_quantity }} {{ $product->unitMeasures?->first()?->unit .'s' }}
{{ $product->in_detail_available_quantity }} {{ $product->unitMeasures?->last()?->unit .'s en Détail' }}
{{ $product->wholesale_unit_selling_price }} FCFA / {{ $product->unitMeasures?->first()?->unit .'s' }}
{{ $product->in_detail_unit_selling_price }} FCFA / {{ $product->unitMeasures?->last()?->unit .'s' }} 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
@php $product->categories /* utile pour pouvoir recuperer payment_method dans data-product dans faire de merge */ @endphp
@can('authorize', 'edit_products') @endcan @can('authorize', 'delete_products') {{-- --}} @endcan
@if(request()->is('products') || request()->is('products/*')) @can('authorize', 'add_products') @includeIf('products.create') @endcan @can('authorize', 'edit_products') @includeIf('products.edit') @endcan @can('authorize', 'delete_products') @includeIf('products.delete') @endcan @endif @endsection @push('scripts') @endpush