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

Suggestions d'Approvisionnement

Suggestions en Attente

{{ $pendingSuggestions }}

Priorité Élevée

{{ $highPrioritySuggestions }}

Coût Estimé Total

{{ number_format($totalEstimatedCost, 0, ',', ' ') }} FCFA

@forelse($suggestions as $suggestion) @empty @endforelse
Produit Quantité Suggérée Coût Estimé Priorité Raison Statut Actions
{{ $suggestion->product->name }}
Stock actuel: {{ $suggestion->product->stock_quantity }} {{ $suggestion->product->unit }}
{{ $suggestion->suggested_quantity }} {{ $suggestion->product->unit }} {{ $suggestion->formatted_estimated_cost }} {{ $suggestion->priority_label }} {{ Str::limit($suggestion->reason, 50) }} @if($suggestion->is_processed) Traité @elseif($suggestion->is_approved) Approuvé @else En attente @endif
@if(!$suggestion->is_approved && !$suggestion->is_processed)
@csrf @method('PATCH')
@endif @if($suggestion->is_approved && !$suggestion->is_processed)
@csrf @method('PATCH')
@endif @if(!$suggestion->is_processed)
@csrf @method('DELETE')
@endif
Aucune suggestion d'approvisionnement disponible.
Cliquez ici pour générer des suggestions
{{ $suggestions->links() }}

Comment fonctionne l'algorithme ?

Analyse des stocks

  • • Calcul de la consommation moyenne (30 derniers jours)
  • • Estimation des jours de stock restant
  • • Comparaison avec les seuils d'alerte

Niveaux de priorité

  • Élevée : Stock faible ou rupture
  • Moyenne : Moins de 2 semaines
  • Faible : Planification
@endsection