{{-- resources/views/ui/inventory/index.blade.php --}} @php $q = $q ?? request('q', ''); $status = $status ?? request('status', 'alle'); $category = $category ?? request('category', 'alle'); $categories = $categories ?? collect(); $statusLabels = [ 'alle' => 'Alle', 'ok' => 'OK', 'warn' => 'Warnung', 'kritisch' => 'Kritisch', ]; $pill = [ 'ok' => 'bg-emerald-50 text-emerald-700 border-emerald-200', 'warn' => 'bg-amber-50 text-amber-700 border-amber-200', 'kritisch' => 'bg-red-50 text-red-700 border-red-200', ]; // kleine Helper $activeFilters = $q !== '' || $status !== 'alle' || $category !== 'alle'; @endphp
Lager
Eigener Bestand inkl. Mindestbestand & Warnstufen.
@if ($activeFilters)
@if ($q !== '') Suche: {{ $q }} @endif @if ($status !== 'alle') Status: {{ $statusLabels[$status] ?? $status }} @endif @if ($category !== 'alle') Kategorie: {{ $category }} @endif Filter zurücksetzen
@endif
Reset
{{ $items->count() }} Positionen
@forelse($items as $it) @php $lvl = $it->level ?? 'ok'; $pillClass = $pill[$lvl] ?? 'bg-neutral-100 text-rk-slate border-rk'; $qty = (int) $it->quantity; @endphp @empty @endforelse
Artikel Variante Bestand Mindest Status Aktion
{{ $it->product?->name ?? '—' }}
{{ $it->variant?->name ?? '—' }} {{ $qty }} {{ (int) $it->minimum_quantity }} {{ $statusLabels[$lvl] ?? $lvl }}
Keine Lagerpositionen
Passe die Filter an oder lege Positionen an.