@extends('layouts.app') @section('title', 'Alertes consommables - Print Manager') @section('content')
Ces cartouches sont à 100% (remplacées) mais aucune sortie de stock n'a été enregistrée.
| Matériel | Fourniture | Date SNMP | Action |
|---|---|---|---|
| {{ $sm->materiel?->nom ?? '?' }} | {{ $sm->fourniture?->nom ?? '?' }} | {{ $sm->date_releve?->format('d/m/Y') ?: '-' }} | @if($sortieExistante) Voir la sortie @else Enregistrer la sortie @endif |
Aucune alerte consommable pour le moment.
@else| Matériel | Marque | IP | Localisation | Consommable | Type | Niveau | Dernier relevé | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ $m?->nom ?? '-' }} | {{ $m?->marque?->nom ?? '-' }} | @if($m?->adresse_ip){{ $m?->adresse_ip }}@else-@endif |
{{ $m?->localisation ?? '-' }} | {{ \App\Services\SnmpNameMapper::translate($r->description ?: $r->type_consommable) }} | {{ $isWaste ? 'Déchet' : 'Consommable' }} | {{ $r->pourcentage }}% | {{ $r->releve_at?->format('d/m/Y H:i') ?: '-' }} | @if($m) @endif @php $_sortieExistante = null; if ($_four && $m) { $_sortieCle = $m->id . '_' . $_four->id; $_sortieExistante = isset($sortiesParCle[$_sortieCle]) ? $sortiesParCle[$_sortieCle]->first() : null; } @endphp @if($_sortieExistante) Voir @elseif($_distribuee) @elseif($_hasSortie) @elseif($_stockEpuise) @endif |