@extends('layouts.layout-2') @php $statusPill = match ($status) { 'critical' => '' . __('Kritisch') . '', 'critical_ordered' => '' . __('Kritisch · bereits bestellt') . '', 'warning' => '' . __('Bald nachbestellen') . '', default => '' . __('Ausreichend') . '', }; $stockCritical = in_array($status, ['critical', 'critical_ordered'], true); @endphp @section('content') @include('admin.inventory.partials.wawi-ui')
{{ __('Rohstoffbestellung & Bestand') }} @if($ingredient->alt_name) · {{ __('Alternativer Name') }}: {{ $ingredient->alt_name }} @endif
| {{ __('Produkt') }} | {{ __('Produktbestand') }} | {{ __('Anteil (%)') }} | {{ __('Verbrauch (g/Stück)') }} |
|---|---|---|---|
| {{ $product->name }} | {{ \App\Services\Util::formatNumber($productStock[$product->id] ?? 0, 0) }} {{ __('Stück') }} | @if($usage) {{ \App\Services\Util::formatNumber($usage['percent'], 2) }} % @else — @endif | @if($usage && $usage['consumption_per_piece'] !== null) {{ \App\Services\Util::formatNumber($usage['consumption_per_piece'], 2) }} g ({{ __('netto') }} {{ \App\Services\Util::formatNumber($usage['grams_per_piece'], 2) }} g) @else — @endif |
{{ __('Dieser Rohstoff wird in keiner aktiven Rezeptur verwendet.') }} |
|||
| {{ __('Lieferant') }} | {{ __('Lieferzeit') }} | @if(Auth::user()->isAdmin()){{ __('Letzter Einkauf (Netto/kg)') }} | @endif|
|---|---|---|---|
|
{{ $supplier->name }}
@if($supplier->pivot->preferred)
{{ __('bevorzugt') }}
@endif
@if($supplier->pivot->supplier_sku)
{{ __('Art.-Nr.') }}: {{ $supplier->pivot->supplier_sku }}
@endif
|
{{ $deliveryTime ?: '—' }} | @if(Auth::user()->isAdmin())@if($lastPrice !== null) {{ \App\Services\Util::formatNumber($lastPrice, 2) }} € @else — @endif | @endif@if($orderUrl) {{ __('Zum Shop') }} @elseif($orderEmail) {{ __('Per Mail') }} @else — @endif |
{{ __('Diesem Rohstoff ist kein Lieferant zugeordnet.') }} |
|||
| {{ __('Charge') }} | {{ __('Lieferant') }} | {{ __('Lagerort') }} | {{ __('MHD') }} | {{ __('Restbestand') }} |
|---|---|---|---|---|
| {{ $group['batch_number'] ?: '#' . $group['entries']->first()->id }} @if($group['entries']->count() > 1) {{ $group['entries']->count() }} {{ __('Einkäufe') }} @endif | {{ $group['suppliers']->isNotEmpty() ? $group['suppliers']->implode(', ') : '—' }} | {{ $group['locations']->isNotEmpty() ? $group['locations']->implode(', ') : '—' }} | {{ $group['best_before']?->format('d.m.Y') ?? '—' }} | {{ formatWawiQuantity($group['remaining'], 0) }} g |
| ↳ {{ __('Einkauf vom') }} {{ $charge->received_at?->format('d.m.Y') ?? '—' }} | {{ $charge->supplier?->name ?? '—' }} | {{ $charge->location?->name ?? '—' }} | {{ $charge->best_before?->format('d.m.Y') ?? '—' }} | {{ formatWawiQuantity($charge->getAttribute('remaining_quantity'), 0) }} g |
{{ __('Kein Restbestand vorhanden.') }} |
||||
| {{ __('Bestand') }} {{ $location->name }} | {{ formatWawiQuantity($remainingByLocation[$location->id], 0) }} g | |||
| {{ __('Eingang') }} | {{ __('Charge') }} | {{ __('Lagerort') }} | {{ __('MHD') }} | {{ __('Eingang') }} | {{ __('Produktion') }} | {{ __('Ausschuss (Charge)') }} | {{ __('Ausschuss (o. Charge)') }} | {{ __('Rest') }} | |
|---|---|---|---|---|---|---|---|---|---|
|
{{ $entry->received_at?->format('d.m.Y') ?? '—' }}
#{{ $entry->id }}
@if($entry->supplier)
{{ $entry->supplier->name }}
@endif
|
{{ $entry->batch_number ?: '—' }} | {{ $entry->location?->name ?? '—' }} | {{ $entry->best_before?->format('d.m.Y') ?? '—' }} | {{ formatWawiQuantity($entry->received_quantity) }} g | {{ (float) $entry->getAttribute('production_quantity') > 0 ? '− ' . formatWawiQuantity($entry->getAttribute('production_quantity')) . ' g' : '—' }} | {{ (float) $entry->getAttribute('bound_disposal_quantity') > 0 ? '− ' . formatWawiQuantity($entry->getAttribute('bound_disposal_quantity')) . ' g' : '—' }} | {{ (float) $entry->getAttribute('unbound_disposal_quantity') > 0 ? '− ' . formatWawiQuantity($entry->getAttribute('unbound_disposal_quantity')) . ' g' : '—' }} | {{ formatWawiQuantity($entry->getAttribute('remaining_quantity')) }} g @if($isEmpty) {{ __('aufgebraucht') }} @endif | |
{{ __('Noch kein gebuchter Wareneingang.') }} |
|||||||||
| {{ __('Summe Wareneingänge') }} | {{ formatWawiQuantity($bd['received_total']) }} g | ||||||||
| {{ __('− Produktionsverbrauch') }} | − {{ formatWawiQuantity($bd['production_total']) }} g | @if($bd['production_other'] > 0) {{ __('davon :qty g ohne zuordenbaren Eingang (z. B. Eingang nachträglich gelöscht)', ['qty' => formatWawiQuantity($bd['production_other'])]) }} @endif | |||||||
| {{ __('− Ausschuss mit Chargenbezug') }} | − {{ formatWawiQuantity($bd['disposed_bound_total'] + $bd['disposed_other']) }} g | @if($bd['disposed_other'] > 0) {{ __('davon :qty g ohne zuordenbaren Eingang (Eingang nachträglich gelöscht)', ['qty' => formatWawiQuantity($bd['disposed_other'])]) }} @endif | |||||||
| {{ __('− Ausschuss ohne Chargenbezug') }} | − {{ formatWawiQuantity($bd['disposed_unbound_total']) }} g | @if($bd['disposed_unbound_unallocated'] > 0) {{ __('davon :qty g keinem Eingang zurechenbar (mehr Ausschuss als Eingang am Lagerort)', ['qty' => formatWawiQuantity($bd['disposed_unbound_unallocated'])]) }} @endif | |||||||
| {{ __('= Gesamtbestand') }} | {{ formatWawiQuantity($bd['remaining_total']) }} g | ||||||||