@php require_frontend_packages(['datatables']); @endphp @extends('layout.default') @section('title', $__t('Stock journal')) @section('content')
 {{ $__t('Product') }}
 {{ $__t('Transaction type') }}
@if(GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING)
 {{ $__t('Location') }}
@endif
 {{ $__t('User') }}
 {{ $__t('Date range') }}
@include('components.userfields_thead', array( 'userfields' => $userfieldsStock )) @foreach($stockLog as $stockLogEntry) @include('components.userfields_tbody', array( 'userfields' => $userfieldsStock, 'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValuesStock, 'object_id', $stockLogEntry->stock_id) )) @endforeach
{{ $__t('Product') }} {{ $__t('Amount') }} {{ $__t('Transaction time') }} {{ $__t('Transaction type') }} {{ $__t('Location') }} {{ $__t('Done by') }} {{ $__t('Note') }}
{{ $stockLogEntry->amount }} {{ $__n($stockLogEntry->amount, $stockLogEntry->qu_name, $stockLogEntry->qu_name_plural, true) }} {{ $stockLogEntry->row_created_timestamp }} {{ $__t($stockLogEntry->transaction_type) }} @if ($stockLogEntry->spoiled == 1) {{ $__t('Spoiled') }} @endif {{ $stockLogEntry->location_name }} {{ $stockLogEntry->user_display_name }} {{ $stockLogEntry->note }}
@include('components.productcard', [ 'asModal' => true ]) @stop