@extends('layout.default') @section('title', $__t('Products')) @section('activeNav', 'products') @section('viewJsName', 'products') @section('content')

 {{ $__t('Product group') }}
@include('components.userfields_thead', array( 'userfields' => $userfields )) @foreach($products as $product) @include('components.userfields_tbody', array( 'userfields' => $userfields, 'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $product->id) )) @endforeach
{{ $__t('Name') }} {{ $__t('Location') }} {{ $__t('Min. stock amount') }} {{ $__t('Default quantity unit purchase') }} {{ $__t('Quantity unit stock') }} {{ $__t('Product group') }} {{ $__t('Default store') }}
{{ $product->name }} @if(!empty($product->picture_file_name)) @endif @php $location = FindObjectInArrayByPropertyValue($locations, 'id', $product->location_id); @endphp @if($location != null) {{ $location->name }} @endif {{ $product->min_stock_amount }} {{ FindObjectInArrayByPropertyValue($quantityunits, 'id', $product->qu_id_purchase)->name }} {{ FindObjectInArrayByPropertyValue($quantityunits, 'id', $product->qu_id_stock)->name }} @if(!empty($product->product_group_id)) {{ FindObjectInArrayByPropertyValue($productGroups, 'id', $product->product_group_id)->name }} @endif @php $store = FindObjectInArrayByPropertyValue($shoppingLocations, 'id', $product->shopping_location_id); @endphp @if($store != null) {{ $store->name }} @endif
@stop