@extends('layouts.layout-2')
@section('content')
@include('admin.inventory.partials.wawi-ui')
{{ __('Einkauf & Wareneingang') }}
{{ __('Bestellungen und Wareneingänge von Rohstoffen und Verpackung') }}
@if(Auth::user()->isAdmin())
{{ __('Neuer Einkauf') }}
@endif
|
{{ __('Status') }} |
{{ __('Bestellt') }} |
{{ __('Art') }} |
{{ __('Artikel') }} |
{{ __('Lieferant') }} |
{{ __('Menge') }} |
|
@foreach($values as $row)
|
@if(Auth::user()->isAdmin() && $row->status === 'pending')
@endif
@if(Auth::user()->isAdmin())
@endif
|
@if($row->status === 'pending')
{{ __('Offen') }}
@else
{{ __('Eingegangen') }}
@endif
|
{{ $row->ordered_at?->format('d.m.Y') }} |
{{ $entryTypeLabels[$row->entry_type] ?? $row->entry_type }} |
@if($row->entry_type === 'ingredient' && $row->ingredient)
{{ $row->ingredient->name }}
@elseif($row->packagingItem)
{{ $row->packagingItem->name }}
@else
—
@endif
|
{{ $row->supplier?->name ?? '—' }} |
@if($row->unit === 'gram')
{{ \App\Services\Util::formatNumber($row->ordered_quantity) }} g
@else
{{ \App\Services\Util::formatNumber($row->ordered_quantity, 0) }} {{ __('Stk.') }}
@endif
|
@if(Auth::user()->isAdmin())
@endif
|
@endforeach
@if(($listLimit ?? null) !== null && $values->count() >= $listLimit)
{{ __('Es werden offene Bestellungen plus die neuesten :n Wareneingänge angezeigt.', ['n' => $listLimit]) }}
{{ __('Alle anzeigen') }}
@endif
@endsection