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

@yield('title')


@include('components.productpicker', array( 'products' => $products, 'disallowAllProductWorkflows' => true, 'isRequired' => false ))
@if (GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING) @endif @if(GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING)@endif @if(GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) @endif @include('components.userfields_thead', array( 'userfields' => $userfields )) @foreach($stockEntries as $stockEntry) @if (GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING) @endif @if(GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING) @endif @if(GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) @endif @include('components.userfields_tbody', array( 'userfields' => $userfields, 'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $stockEntry->product_id) )) @endforeach
product_id {{ $__t('Product') }} {{ $__t('Amount') }}{{ $__t('Due date') }}{{ $__t('Location') }}{{ $__t('Store') }} {{ $__t('Price') }}{{ $__t('Purchased date') }}
@if(GROCY_FEATURE_FLAG_STOCK_PRODUCT_OPENED_TRACKING) @endif {{ $stockEntry->product_id }} {{ $stockEntry->amount }} {{ $__n($stockEntry->amount, FindObjectInArrayByPropertyValue($quantityunits, 'id', FindObjectInArrayByPropertyValue($products, 'id', $stockEntry->product_id)->qu_id_stock)->name, FindObjectInArrayByPropertyValue($quantityunits, 'id', FindObjectInArrayByPropertyValue($products, 'id', $stockEntry->product_id)->qu_id_stock)->name_plural) }} @if($stockEntry->open == 1){{ $__t('Opened') }}@endif {{ $stockEntry->best_before_date }} {{ FindObjectInArrayByPropertyValue($locations, 'id', $stockEntry->location_id)->name }} @if (FindObjectInArrayByPropertyValue($shoppinglocations, 'id', $stockEntry->shopping_location_id) !== null) {{ FindObjectInArrayByPropertyValue($shoppinglocations, 'id', $stockEntry->shopping_location_id)->name }} @endif {{ $stockEntry->price }} {{ $stockEntry->purchased_date }}
@stop