@extends('layouts.layout-2') @section('content') @include('admin.inventory.partials.table-actions-style') @php $statusBadge = match ($status) { 'critical' => '' . __('Kritisch') . '', 'critical_ordered' => '' . __('Kritisch · bereits bestellt') . '', 'warning' => '' . __('Bald nachbestellen') . '', default => '' . __('Ausreichend') . '', }; @endphp
| {{ __('Produkt') }} | {{ __('Produktbestand') }} | {{ __('Rezeptur-Anteil (g/Stück)') }} |
|---|---|---|
| {{ $product->name }} | {{ \App\Services\Util::formatNumber($productStock[$product->id] ?? 0, 0) }} {{ __('Stück') }} | @if($product->pivot->gram !== null && $product->pivot->gram !== '') {{ \App\Services\Util::formatNumber($product->pivot->gram, 2) }} g @else — @endif |
| {{ __('Dieser Rohstoff wird in keiner aktiven Rezeptur verwendet.') }} | ||
| {{ __('Lieferant') }} | {{ __('Lieferzeit') }} | {{ __('Letzter Einkauf (Netto/kg)') }} | |
|---|---|---|---|
|
{{ $supplier->name }}
@if($supplier->pivot->preferred)
{{ __('bevorzugt') }}
@endif
@if($supplier->pivot->supplier_sku)
{{ __('Art.-Nr.') }}: {{ $supplier->pivot->supplier_sku }}
@endif
|
{{ $deliveryTime ?: '—' }} | @if($lastPrice !== null) {{ \App\Services\Util::formatNumber($lastPrice, 2) }} € @else — @endif | @if($supplier->order_method === 'online_shop' && $orderUrl) {{ __('Zum Shop') }} @elseif($orderEmail) {{ __('Per Mail') }} @elseif($orderUrl) {{ __('Zum Shop') }} @else — @endif |
| {{ __('Diesem Rohstoff ist kein Lieferant zugeordnet.') }} | |||
| {{ __('Charge') }} | {{ __('Lieferant') }} | {{ __('Lagerort') }} | {{ __('MHD') }} | {{ __('Restbestand') }} |
|---|---|---|---|---|
| {{ $charge->batch_number ?: '#' . $charge->id }} | {{ $charge->supplier?->name ?? '—' }} | {{ $charge->location?->name ?? '—' }} | {{ $charge->best_before?->format('d.m.Y') ?? '—' }} | {{ \App\Services\Util::formatNumber($charge->getAttribute('remaining_quantity'), 0) }} g |
| {{ __('Kein Restbestand vorhanden.') }} | ||||
| {{ __('Bestand') }} {{ $location->name }} | {{ \App\Services\Util::formatNumber($remainingByLocation[$location->id], 0) }} g | |||