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

@yield('title')

@include('components.productpicker', array('products' => $products,'disallowAddProductWorkflows' => 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($currentStockDetail as $currentStockEntry) amount > 0) table-warning @elseif (FindObjectInArrayByPropertyValue($missingProducts, 'id', $currentStockEntry->product_id) !== null) table-info @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') }}
1 {{ $__t('All') }} @if(GROCY_FEATURE_FLAG_STOCK_PRODUCT_OPENED_TRACKING) 1 @endif {{ $currentStockEntry->product_id }} {{ $currentStockEntry->amount }} {{ $__n($currentStockEntry->amount, FindObjectInArrayByPropertyValue($quantityunits, 'id', FindObjectInArrayByPropertyValue($products, 'id', $currentStockEntry->product_id)->qu_id_stock)->name, FindObjectInArrayByPropertyValue($quantityunits, 'id', FindObjectInArrayByPropertyValue($products, 'id', $currentStockEntry->product_id)->qu_id_stock)->name_plural) }} @if($currentStockEntry->amount_opened > 0){{ $__t('%s opened', $currentStockEntry->amount_opened) }}@endif @if($currentStockEntry->is_aggregated_amount == 1) {{ $currentStockEntry->amount_aggregated }} {{ $__n($currentStockEntry->amount_aggregated, FindObjectInArrayByPropertyValue($quantityunits, 'id', FindObjectInArrayByPropertyValue($products, 'id', $currentStockEntry->product_id)->qu_id_stock)->name, FindObjectInArrayByPropertyValue($quantityunits, 'id', FindObjectInArrayByPropertyValue($products, 'id', $currentStockEntry->product_id)->qu_id_stock)->name_plural) }} @if($currentStockEntry->amount_opened_aggregated > 0){{ $__t('%s opened', $currentStockEntry->amount_opened_aggregated) }}@endif @endif {{ $currentStockEntry->best_before_date }} {{ $currentStockEntry->purchased_date }}
@stop