@extends('layouts.layout-2') @php $total = $rows->count(); $criticalCount = $rows->where('status', 'critical')->count(); $warningCount = $rows->where('status', 'warning')->count(); $okCount = $total - $criticalCount - $warningCount; @endphp @section('content') @include('admin.inventory.partials.wawi-ui')
{{ __('Aktueller Lagerbestand aller aktiven Produkte') }}
| {{ __('Name') }} | {{ __('Bestand') }} | {{ __('Verbrauch/Monat') }} | {{ __('Status') }} | {{ __('Aktion') }} | |
|---|---|---|---|---|---|
|
@if ($product->images->count())
|
{{ $product->name }}
@if (!empty($product->number))
{{ $product->number }}
@endif
|
{{ \App\Services\Util::formatNumber($row['stock'], 0) }} {{ __('Stück') }} | @if ($row['monthly_consumption'] > 0) {{ \App\Services\Util::formatNumber($row['monthly_consumption'], 1) }} {{ __('Stück') }} @else – @endif | @if ($row['status'] === 'critical') {{ __('Kritisch') }} @elseif ($row['status'] === 'warning') {{ __('Niedrig') }} @else {{ __('OK') }} @endif |
@if (Auth::user()->isAdmin())
@endif
{{ __('Produzieren') }}
|
|
{{ __('Keine Produkte vorhanden.') }}
|
|||||