@php /** @var \App\Models\Production $model */ @endphp @extends('layouts.layout-2') @section('content') @include('admin.inventory.partials.wawi-ui')

{{ __('Produktion') }} #{{ $model->id }}

{{ $model->product?->name ?? '—' }} · {{ $model->produced_at?->format('d.m.Y') }}

{{ __('Übersicht') }}
{{ __('Produkt') }} {{ $model->product?->name ?? '—' }}
{{ __('Produktionsdatum') }} {{ $model->produced_at?->format('d.m.Y') }}
{{ __('Stückzahl') }} {{ $model->quantity }}
{{ __('Standort') }} {{ $model->location?->name ?? '—' }}
{{ __('Erfasst von') }} {{ $model->producedByUser?->getFullName(false) ?: $model->producedByUser?->email ?? '—' }}
{{ __('MHD-Hinweis') }} @if($model->mhd_warning) {{ __('Rohstoff-MHD kürzer als Produkt-MHD') }} @else — @endif
@if($model->notes)
{{ __('Notizen') }} {{ $model->notes }}
@endif
{{ __('Rohstoff-Verbrauch (Chargen)') }}
@foreach($model->productionIngredients as $line) @endforeach
{{ __('Inhaltsstoff') }} {{ __('Charge / Wareneingang') }} {{ __('Menge (g)') }}
{{ $line->ingredient?->name ?? '—' }} #{{ $line->stock_entry_id }} @if($line->stockEntry?->batch_number) — {{ $line->stockEntry->batch_number }} @endif @if($line->stockEntry?->best_before) (MHD {{ $line->stockEntry->best_before->format('d.m.Y') }}) @endif {{ \App\Services\Util::formatNumber($line->quantity_used) }}
{{ __('Verpackung (Snapshot)') }}
@foreach($model->productionPackagings as $line) @endforeach
{{ __('Artikel') }} {{ __('Verbrauch (Stk.)') }}
{{ $line->packagingItem?->name ?? '—' }} {{ $line->quantity_used }}
@endsection