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

@yield('title')


@include('components.productpicker', [ 'productsQuery' => 'query%5B%5D=active%3D1&order=name%3Acollate%20nocase', 'disallowAllProductWorkflows' => true, 'isRequired' => false, ])
{{-- TODO: DataTables: dynamic data: stock --}} @include('components.userfields_thead', [ 'userfields' => $userfields, ]) @foreach ($stockEntries as $stockEntry) @include('components.userfields_tbody', [ 'userfields' => $userfields, 'userfieldValues' => FindAllObjectsInArrayByPropertyValue( $userfieldValues, 'object_id', $stockEntry->product_id ), ]) @endforeach
Hidden product_id {{ $__t('Product') }} {{ $__t('Amount') }} {{ $__t('Due date') }} {{ $__t('Location') }} {{ $__t('Store') }} {{ $__t('Price') }} {{ $__t('Purchased date') }} Hidden purchased_date {{ $__t('Timestamp') }}
@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,true) }} @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 }} {{ $stockEntry->purchased_date }} {{ $stockEntry->row_created_timestamp }}
@stop