@extends('layout.default') @section('title', $__t('Shopping list')) @section('activeNav', 'shoppinglist') @section('viewJsName', 'shoppinglist') @push('pageScripts') @endpush @push('pageStyles') @endpush @section('content')
{{count($missingProducts)}} {{ $__n(count($missingProducts), '%s product is below defined min. stock amount', '%s products are below defined min. stock amount') }}
 {{ $__t('Status') }}
{{ $__t('Normal view') }} @include('components.userfields_thead', array( 'userfields' => $userfields )) @include('components.userfields_thead', array( 'userfields' => $productUserfields )) @foreach($listItems as $listItem) @include('components.userfields_tbody', array( 'userfields' => $userfields, 'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $listItem->id) )) @include('components.userfields_tbody', array( 'userfields' => $productUserfields, 'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $listItem->product_id) )) @endforeach
{{ $__t('Product') }} / {{ $__t('Note') }} {{ $__t('Amount') }} {{ $__t('Product group') }} Hidden status
product_id)) data-toggle="tooltip" title="{{ $__t('Add %1$s of %2$s to stock', $listItem->amount . ' ' . $__n($listItem->amount, FindObjectInArrayByPropertyValue($quantityunits, 'id', $listItem->qu_id)->name, FindObjectInArrayByPropertyValue($quantityunits, 'id', $listItem->qu_id)->name_plural), FindObjectInArrayByPropertyValue($products, 'id', $listItem->product_id)->name, $listItem->amount) }}" @endif> @if(!empty($listItem->product_id)) @php $listItem->amount_origin_qu = $listItem->amount; $product = FindObjectInArrayByPropertyValue($products, 'id', $listItem->product_id); $productQuConversions = FindAllObjectsInArrayByPropertyValue($quantityUnitConversionsResolved, 'product_id', $product->id); $productQuConversions = FindAllObjectsInArrayByPropertyValue($productQuConversions, 'from_qu_id', $product->qu_id_stock); $productQuConversion = FindObjectInArrayByPropertyValue($productQuConversions, 'to_qu_id', $listItem->qu_id); if ($productQuConversion) { $listItem->amount = $listItem->amount * $productQuConversion->factor; } @endphp @endif {{ $listItem->amount }} @if(!empty($listItem->product_id)){{ $__n($listItem->amount, FindObjectInArrayByPropertyValue($quantityunits, 'id', $listItem->qu_id)->name, FindObjectInArrayByPropertyValue($quantityunits, 'id', $listItem->qu_id)->name_plural) }}@endif @if(!empty(FindObjectInArrayByPropertyValue($products, 'id', $listItem->product_id)->product_group_id)) {{ FindObjectInArrayByPropertyValue($productGroups, 'id', FindObjectInArrayByPropertyValue($products, 'id', $listItem->product_id)->product_group_id)->name }} @else {{ $__t('Ungrouped') }} @endif @if(FindObjectInArrayByPropertyValue($missingProducts, 'id', $listItem->product_id) !== null) belowminstockamount @endif @if($listItem->done != 1) xxUNDONExx @endif
@if(boolval($userSettings['shopping_list_show_calendar']))
@include('components.calendarcard')
@endif
{{ $__t('Save') }} {{ $__t('Clear') }}

{{ $__t("Shopping list") }}

@if (FindObjectInArrayByPropertyValue($shoppingLists, 'id', $selectedShoppingListId)->name != $__t("Shopping list"))

{{ FindObjectInArrayByPropertyValue($shoppingLists, 'id', $selectedShoppingListId)->name }}

@endif
{{ $__t('Time of printing') }}:
@include('components.userfields_thead', array( 'userfields' => $userfields )) @foreach($listItems as $listItem) @include('components.userfields_tbody', array( 'userfields' => $userfields, 'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $listItem->product_id) )) @endforeach
{{ $__t('Product') }} / {{ $__t('Note') }} {{ $__t('Amount') }}
@if(!empty($listItem->product_id)) {{ FindObjectInArrayByPropertyValue($products, 'id', $listItem->product_id)->name }}
@endif{!! nl2br($listItem->note) !!}
{{ $listItem->amount }} @if(!empty($listItem->product_id)){{ $__n($listItem->amount, FindObjectInArrayByPropertyValue($quantityunits, 'id', $listItem->qu_id)->name, FindObjectInArrayByPropertyValue($quantityunits, 'id', $listItem->qu_id)->name_plural) }}@endif
{{ $__t('Notes') }}

@stop