@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') ?? '—' }} | {{ \App\Services\Util::formatNumber($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 }} | {{ \App\Services\Util::formatNumber($remainingByLocation[$location->id], 0) }} g | |||