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

@if (GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING)

@endif

{{ $__t('Clear filter') }}
@if(GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING)
 {{ $__t('Location') }}
@endif
 {{ $__t('Product group') }}
 {{ $__t('Status') }}
@include('components.userfields_thead', array( 'userfields' => $userfields )) @foreach($currentStock as $currentStockEntry) amount > 0) table-warning @elseif ($currentStockEntry->product_missing) table-info @endif"> @include('components.userfields_tbody', array( 'userfields' => $userfields, 'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $currentStockEntry->product_id) )) @endforeach
{{ $__t('Product') }} {{ $__t('Product group') }} {{ $__t('Amount') }} {{ $__t('Next best before date') }} Hidden location Hidden status Hidden product group
1 {{ $__t('All') }} @if(GROCY_FEATURE_FLAG_STOCK_PRODUCT_OPENED_TRACKING) 1 @endif @if($currentStockEntry->product_group_name !== null){{ $currentStockEntry->product_group_name }}@endif {{ $currentStockEntry->amount }} {{ $__n($currentStockEntry->amount, $currentStockEntry->qu_unit_name, $currentStockEntry->qu_unit_name_plural) }} @if($currentStockEntry->amount_opened > 0){{ $__t('%s opened', $currentStockEntry->amount_opened) }}@endif @if($currentStockEntry->amount != $currentStockEntry->factor_purchase_amount) ({{ $currentStockEntry->factor_purchase_amount }} {{ $__n($currentStockEntry->factor_purchase_amount, $currentStockEntry->qu_purchase_unit_name,$currentStockEntry->qu_purchase_unit_name_plural) }}) @endif @if($currentStockEntry->is_aggregated_amount == 1) {{ $currentStockEntry->amount_aggregated }} {{ $__n($currentStockEntry->amount_aggregated, $currentStockEntry->qu_unit_name, $currentStockEntry->qu_unit_name_plural) }} @if($currentStockEntry->amount_opened_aggregated > 0){{ $__t('%s opened', $currentStockEntry->amount_opened_aggregated) }}@endif @endif @if(boolval($userSettings['show_icon_on_stock_overview_page_when_product_is_on_shopping_list'])) @if($currentStockEntry->on_shopping_list) @endif @endif {{ $currentStockEntry->best_before_date }} @foreach(FindAllObjectsInArrayByPropertyValue($currentStockLocations, 'product_id', $currentStockEntry->product_id) as $locationsForProduct) xx{{ FindObjectInArrayByPropertyValue($locations, 'id', $locationsForProduct->location_id)->name }}xx @endforeach @if($currentStockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime('-1 days')) && $currentStockEntry->amount > 0) expired @elseif($currentStockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime("+$nextXDays days")) && $currentStockEntry->amount > 0) expiring @endif @if($currentStockEntry->product_missing) belowminstockamount @endif xx{{ $currentStockEntry->product_group_name }}xx
@stop