@if ($categoriesOptions['cat_display_type'] == 'c_picture_list')
@if (isset($categories) and $categories->count() > 0)
@foreach($categories as $key => $cat)
@endforeach
@endif
@elseif ($categoriesOptions['cat_display_type'] == 'c_bigIcon_list')
@if (isset($categories) and $categories->count() > 0)
@foreach($categories as $key => $cat)
@endforeach
@endif
@elseif (in_array($categoriesOptions['cat_display_type'], ['cc_normal_list', 'cc_normal_list_s']))
@if (isset($categories) and $categories->count() > 0)
@foreach ($categories as $key => $cols)
@foreach ($cols as $iCat)
@if (isset($subCategories) and $subCategories->has($iCat->id))
@foreach ($subCategories->get($iCat->id) as $iSubCat)
-
{{ $iSubCat->name }}
@if (config('settings.list.count_categories_listings'))
({{ $countPostsByCat->get($iSubCat->id)->total ?? 0 }})
@endif
@endforeach
@endif
@endforeach
@endforeach
@endif
@else
@if (isset($categories) and $categories->count() > 0)
@foreach ($categories as $key => $items)
@foreach ($items as $k => $cat)
-
@if (in_array(config('settings.list.show_category_icon'), [2, 6, 7, 8]))
@endif
{{ $cat->name }}
@if (config('settings.list.count_categories_listings'))
({{ $countPostsByCat->get($cat->id)->total ?? 0 }})
@endif
@endforeach
@endforeach
@endif
@endif