@extends('layouts.app') @section('main-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 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' }}
{{ $product->wholesale_available_quantity }} {{ $product->unitMeasures?->last()?->unit .'s en Gros' }}
{{--
{{ $product->wholesale_unit_selling_price }} FCFA / {{ $product->unitMeasures?->first()?->unit .'s' }} en Gros
--}} {{--
{{ $product->in_detail_unit_selling_price }} FCFA / {{ $product->unitMeasures?->last()?->unit .'s' }} en Détail
--}}
{{ $product->unitMeasures?->first()?->pivot->unit_price }} FCFA / {{ $product->unitMeasures?->first()?->unit .'s' }} en Détail
{{ $product->unitMeasures?->last()?->pivot->unit_price }} FCFA / {{ $product->unitMeasures?->last()?->unit .'s' }} en Gros
@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
@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