@if (count($trending_categoryGroups)) @foreach ($trending_categoryGroups as $group) @if($group->style == 2)

@php $translation = $group->translations->where('language_id',getLocaleId())->first(); @endphp {{$translation->name ?? $group->name }}

@if (Storage::exists(optional($group->backgroundImage)->path))
@endif
@foreach ($group->categories as $category) @foreach($category->products as $product) @foreach($product->inventories as $item) @php $item_translation = $item->translations->where('language_id',getLocaleId())->first(); @endphp
@if (empty($title)) @endif @if (empty($pricing))
{!! get_formated_price($item->current_sale_price(), config('system_settings.decimals', 2)) !!} @if ($item->hasOffer())

{!! get_formated_price($item->sale_price, config('system_settings.decimals', 2)) !!}

@endif
@endif
@endforeach @endforeach @endforeach
@else

@php $translation = $group->translations->where('language_id',getLocaleId())->first(); @endphp {{$translation->name ?? $group->name }}

@if (Storage::exists(optional($group->backgroundImage)->path)) @endif
@foreach ($group->categories as $category) @foreach($category->products as $product) @foreach($product->inventories as $item) @php $item_translation = $item->translations->where('language_id',getLocaleId())->first(); @endphp
@if (empty($title)) @endif @if (empty($pricing))
{!! get_formated_price($item->current_sale_price(), config('system_settings.decimals', 2)) !!} @if ($item->hasOffer())

{!! get_formated_price($item->sale_price, config('system_settings.decimals', 2)) !!}

@endif
@endif
@endforeach @endforeach @endforeach
@endif @endforeach @endif