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

@yield('title') {{ $__t('Print') . ' (' . $__t('all locations') . ')' }}

{{ $__t('Here you can print a page per location with the current stock, maybe to hang it there and note the consumed things on it.') }}
@foreach($locations as $location)

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

{{ $__t('Time of printing') }}:
@php $currentStockEntriesForLocation = FindAllObjectsInArrayByPropertyValue($currentStockLocationContent, 'location_id', $location->id); @endphp @foreach($currentStockEntriesForLocation as $currentStockEntry) @endforeach
{{ $__t('Product') }} {{ $__t('Amount') }} {{ $__t('Consumend 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) }} @if($currentStockEntry->amount_opened > 0){{ $__t('%s opened', $currentStockEntry->amount_opened) }}@endif
@endforeach @stop