@php $catDisplayType ??= 'cc_normal_list'; $styled = ($catDisplayType == 'cc_normal_list_s') ? ' styled' : ''; @endphp
@if (!empty($categories))
@foreach ($categories as $key => $cols)
@foreach ($cols as $iCat) @php $randomId = '-' . substr(uniqid(rand(), true), 5, 5); @endphp

@if (in_array(config('settings.listings_list.show_category_icon'), [2, 6, 7, 8]))   @endif {{ data_get($iCat, 'name') }} @if (config('settings.listings_list.count_categories_listings'))  ({{ $countPostsPerCat[data_get($iCat, 'id')]['total'] ?? 0 }}) @endif

    @if (isset($subCategories[data_get($iCat, 'id')])) @php $catSubCats = $subCategories[data_get($iCat, 'id')]; @endphp @foreach ($catSubCats as $iSubCat)
  • {{ data_get($iSubCat, 'name') }} @if (config('settings.listings_list.count_categories_listings'))  ({{ $countPostsPerCat[data_get($iSubCat, 'id')]['total'] ?? 0 }}) @endif
  • @endforeach @endif
@endforeach
@endforeach
@endif