@extends('layouts.layout-2') @section('content') @include('admin.inventory.partials.table-actions-style')
{{ __('Wareneingang') }} @if(Auth::user()->isAdmin()) {{ __('Neuer Einkauf') }} @endif
@foreach($values as $row) @endforeach
{{ __('Status') }} {{ __('Bestellt') }} {{ __('Art') }} {{ __('Artikel') }} {{ __('Lieferant') }} {{ __('Menge') }}
@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() && $row->status === 'pending')
@csrf @method('DELETE')
@endif
@endsection