@extends('layouts.app') @section('content')
@if($products->count() > 0)
@forelse($products as $product) @php $lowVariants = $product->hasVariants() ? $product->lowStockVariants()->get() : collect(); @endphp @include('inventory.products.partials.edit_quantity', ['product' => $product]) @empty @endforelse
Produit Catégorie Prix Quantité Seuil d'alerte Taille(s) en alerte Créé par Actions
{{ $product->category->name ?? '-' }} {{ number_format($product->price, 0, ' ', ' ') }} FCFA {{ $product->quantity }} {{ $product->seuil_alert }} @if($lowVariants->isNotEmpty()) @foreach($lowVariants as $variant) {{ $variant->label() }} ({{ $variant->quantity }}) @endforeach @else — @endif {{ $product->user ? $product->user->nom . ' ' . $product->user->prenom : '-' }}
@csrf @method('DELETE')
Aucun produit en faible stock trouvé.
@else @include('partials.empty-state', [ 'icon' => 'alert-triangle', 'title' => 'Aucun produit en faible stock', 'description' => 'Tous vos stocks sont au-dessus du seuil d’alerte pour le moment.', 'actionUrl' => route('inventory.products'), 'actionLabel' => 'Voir les produits', 'actionIcon' => 'package', ]) @endif
@endsection