@extends('layouts.app') @section('title', 'Stock') @section('page-title', 'Stock') @section('content')
{{-- Header --}}

État des stocks par magasin

Vue d'ensemble des quantités disponibles

{{-- Filtres --}}
{{-- Filtre Magasin --}}
{{-- Filtre Produit avec recherche --}}

Sélectionnez un produit

Aucun produit trouvé

Exporter @if(request()->hasAny(['magasin_id', 'produit_id'])) Réinitialiser @endif
{{-- Tableau --}}
@forelse($stocks as $stock) @empty @endforelse
Magasin Produit Quantité Seuil alerte Statut
{{ $stock->magasin?->nom ?? '-' }}
{{ $stock->produit?->designation ?? '-' }} @if($stock->produit?->reference) ({{ $stock->produit->reference }}) @endif {{ number_format($stock->quantite ?? 0, 0, ',', ' ') }} {{ $stock->seuil_alerte ?? 0 }} @if($stock->quantite <= $stock->seuil_alerte) Critique @else Seuil Non critique @endif

Aucun stock trouvé

Modifiez les filtres ou ajoutez des produits en stock.

{{-- Pagination --}} @if($stocks->total() > 0)

Affichage de {{ $stocks->firstItem() }} à {{ $stocks->lastItem() }} sur {{ $stocks->total() }} stocks

@if($stocks->hasPages())
@if($stocks->onFirstPage()) Précédent @else Précédent @endif Page {{ $stocks->currentPage() }} / {{ $stocks->lastPage() }} @if($stocks->hasMorePages()) Suivant @else Suivant @endif
@endif
@endif
@endsection