@foreach ($categories as $key => $category)
@include( 'Plugins/Payment/Views/Elements/Product/category', [ 'category' => $category, 'products' => ( isset($products->{$category->id}->Products) && $products->{$category->id}->Products ? $products->{$category->id}->Products : null ) ] )
@endforeach