@extends('layout.default') @section('title', $__t('Location Content Sheet')) @section('viewJsName', 'locationcontentsheet') @push('pageStyles') @endpush @section('content')
@foreach ($locations as $location)

{{ $location->name }} {{ $__t('Print') . ' (' . $__t('this location') . ')' }}

{{ $__t('Time of printing') }}:
{{-- TODO: DataTables: dynamic data: stock --}} @php $currentStockEntriesForLocation = FindAllObjectsInArrayByPropertyValue($currentStockLocationContent, 'location_id', $location->id); @endphp @foreach ($currentStockEntriesForLocation as $currentStockEntry) @endforeach
{{ $__t('Product') }} {{ $__t('Amount') }} {{ $__t('Consumed amount') . ' / ' . $__t('Notes') }}
{{ FindObjectInArrayByPropertyValue($products, 'id', $currentStockEntry->product_id)->name }} {{ $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,true) }} @if ($currentStockEntry->amount_opened > 0) {{ $__t('%s opened', $currentStockEntry->amount_opened) }} @endif
@endforeach @stop