@php require_frontend_packages(['datatables']); @endphp @extends('layout.default') @section('title', $__t('Product groups')) @section('content')

@include('components.userfields_thead', array( 'userfields' => $userfields )) @foreach($productGroups as $productGroup) @include('components.userfields_tbody', array( 'userfields' => $userfields, 'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $productGroup->id) )) @endforeach
{{ $__t('Name') }} {{ $__t('Description') }} {{ $__t('Product count') }}
{{ $productGroup->name }} {{ $productGroup->description }} {{ count(FindAllObjectsInArrayByPropertyValue($products, 'product_group_id', $productGroup->id)) }}
@stop