@extends('layouts.layout-2') @section('content') @include('admin.inventory.partials.table-actions-style')
{{ __('Rohstoffbestand') }}
@forelse($rows as $row) @php $ingredient = $row['ingredient']; $rowClass = $row['status'] === 'critical' ? 'table-danger' : (in_array($row['status'], ['warning', 'critical_ordered'], true) ? 'table-warning' : ''); @endphp @empty @endforelse
{{ __('Name') }} {{ __('Qualität') }} {{ __('Bestand') }} {{ __('Offen bestellt') }} {{ __('Verbrauch / Tag') }} {{ __('Voraussichtlich auf Null') }}
{{ $ingredient->name }} {{ $ingredient->materialQuality?->name ?? '—' }} {{ \App\Services\Util::formatNumber($row['remaining'], 0) }} g @if($row['status'] === 'critical_ordered') {{ __('bestellt') }} @endif @if($row['open_order'] > 0) {{ \App\Services\Util::formatNumber($row['open_order'], 0) }} g @else @endif @if($row['daily'] !== null && $row['daily'] > 0) {{ \App\Services\Util::formatNumber($row['daily'], 0) }} g @else @endif @if($row['expected_empty'] !== null) {{ $row['expected_empty']->format('d.m.Y') }} ({{ $row['days_until_empty'] }} {{ trans_choice('Tag|Tagen', $row['days_until_empty']) }}) @else @endif @if($row['daily'] !== null && $row['daily'] > 0) {{ \App\Services\Util::formatNumber($row['daily'] * $defaultHorizon, 0) }} g @else @endif
{{ __('Keine aktiven Rohstoffe vorhanden.') }}
@endsection