@if ($product->type == 'grouped')
{!! view_render_event('bagisto.shop.products.view.grouped_products.before', ['product' => $product]) !!}
@php
$groupedProducts = $product->grouped_products()->orderBy('sort_order')->get();
@endphp
@if ($groupedProducts->count())
-
{{ __('shop::app.products.name') }}
{{ __('shop::app.products.qty') }}
@foreach ($groupedProducts as $groupedProduct)
@if($groupedProduct->associated_product->getTypeInstance()->isSaleable())
-
{{ $groupedProduct->associated_product->name }}
@include ('shop::products.price', ['product' => $groupedProduct->associated_product])
@endif
@endforeach
@endif
{!! view_render_event('bagisto.shop.products.view.grouped_products.before', ['product' => $product]) !!}
@endif