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

@yield('title')  {{ $__t('Add') }}  {{ $__t('Configure userfields') }}  {{ $__t('Presets for new products') }}

@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('QU purchase') }} {{ $__t('QU stock') }} {{ $__t('QU factor') }} {{ $__t('Product group') }} {{ $__t('Barcode(s)') }}
{{ $product->name }}@if(!empty($product->picture_file_name)) @endif {{ FindObjectInArrayByPropertyValue($locations, 'id', $product->location_id)->name }} {{ $product->min_stock_amount }} {{ FindObjectInArrayByPropertyValue($quantityunits, 'id', $product->qu_id_purchase)->name }} {{ FindObjectInArrayByPropertyValue($quantityunits, 'id', $product->qu_id_stock)->name }} {{ $product->qu_factor_purchase_to_stock }} @if(!empty($product->product_group_id)) {{ FindObjectInArrayByPropertyValue($productGroups, 'id', $product->product_group_id)->name }} @endif {{ $product->barcode }}
@stop