@extends('layouts.app', ['title' => 'Bestand']) @section('content')

Bestand

Aktueller Lagerbestand pro Artikel und Lager
Buchung erfassen
@if(session('success'))
{{ session('success') }}
@endif @forelse($stock as $warehouseId => $lines) @php $warehouse = $warehouses->find($warehouseId); @endphp
{{ $warehouse?->name ?? 'Lager #'.$warehouseId }} @if($warehouse?->location) {{ $warehouse->location }} @endif
@foreach($lines as $s) @endforeach
Artikel Kategorie Bestand Mindestbestand Status
{{ $s->item->name }}
@if($s->item->item_number){{ $s->item->item_number }}@endif
{{ $s->item->category ?? '—' }} {{ number_format($s->quantity, 2, ',', '.') }} {{ $s->item->unit?->name }} {{ $s->min_quantity > 0 ? number_format($s->min_quantity, 2, ',', '.') : '—' }} @if($s->isBelowMinimum()) Unterbestand @elseif($s->quantity <= 0) Leer @else OK @endif
@empty
Noch keine Bestände vorhanden.
@endforelse
@endsection