@extends('layouts.app') @section('content') @if (session('error'))

{{ session('error') }}

@endif
@php $magasinName = isset($magasin) && $magasin ? $magasin->name : 'Non défini'; @endphp @if($products->isNotEmpty())
@foreach($products as $product) @include('inventory.products.partials.edit_quantity', ['product' => $product]) @endforeach
Produit Catégorie Prix Quantité Date d'expiration Créé par Actions
{{ $product->category->name ?? '-' }} {{ number_format($product->price, 0, ',', ' ') }} FCFA {{ $product->quantity }} {{ $product->date_expiration ?? '-' }} {{ $product->user ? ($product->user->nom . ' ' . $product->user->prenom) : '-' }}
@csrf @method('DELETE')
@else

Aucun produit expiré pour le magasin {{ $magasinName }}

@endif
@endsection