@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 ))
@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) amount > 0) table-warning @endif"> @if(GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING) @endif @if(GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) @endif @endforeach
product_id {{ $__t('Product') }} {{ $__t('Amount') }} {{ $__t('Best before date') }}{{ $__t('Location') }}{{ $__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 }} {{ $stockEntry->price }} {{ $stockEntry->purchased_date }}
@stop