@extends('layout.default') @section('title', $L('Stock overview')) @section('activeNav', 'stockoverview') @section('viewJsName', 'stockoverview') @push('pageScripts') @endpush @section('content')

@yield('title') {{ $L('#1 products with #2 units in stock', count($currentStock), SumArrayValue($currentStock, 'amount')) }}

{{ $L('#1 products expiring within the next #2 days', $countExpiringNextXDays, $nextXDays) }}

{{ $L('#1 products are already expired', $countAlreadyExpired) }}

{{ $L('#1 products are below defined min. stock amount', count($missingProducts)) }}

@foreach($currentStock as $currentStockEntry) @endforeach
# {{ $L('Product') }} {{ $L('Amount') }} {{ $L('Next best before date') }}
1 {{ $L('All') }} {{ FindObjectInArrayByPropertyValue($products, 'id', $currentStockEntry->product_id)->name }} {{ $currentStockEntry->amount }} {{ FindObjectInArrayByPropertyValue($quantityunits, 'id', FindObjectInArrayByPropertyValue($products, 'id', $currentStockEntry->product_id)->qu_id_stock)->name }} {{ $currentStockEntry->best_before_date }}
@stop