@if ($categoriesOptions['type_of_display'] == 'c_picture_icon')
@if (isset($categories) and $categories->count() > 0)
@foreach($categories as $key => $cat)
@endforeach
@endif
@elseif (in_array($categoriesOptions['type_of_display'], ['cc_normal_list', 'cc_normal_list_s']))
Notice: Undefined variable: categoriesOptions in
/var/www/html/resources/views/homeOld/inc/categories.blade.php on line
42
@if (isset($categories) and $categories->count() > 0)
@foreach ($categories as $key => $cols)
@foreach ($cols as $iCat)
@if (isset($subCategories) and $subCategories->has($iCat->tid))
@foreach ($subCategories->get($iCat->tid) as $iSubCat)
-
{{ $iSubCat->name }}
@if (isset($categoriesOptions['count_categories_posts']) and $categoriesOptions['count_categories_posts'])
({{ $iSubCat->childrenPosts->count() }})
@endif
@endforeach
@endif
@endforeach
@endforeach
@endif
@else
Notice: Undefined variable: categoriesOptions in
/var/www/html/resources/views/homeOld/inc/categories.blade.php on line
111
@if (isset($categories) and $categories->count() > 0)
@foreach ($categories as $key => $items)
@foreach ($items as $k => $cat)
-
@if (isset($categoriesOptions['show_icon']) and $categoriesOptions['show_icon'] == 1)
@endif
{{ $cat->name }}
@if (isset($categoriesOptions['count_categories_posts']) and $categoriesOptions['count_categories_posts'])
@if ($cat->children->count() > 0)
({{ $cat->posts->count() + $cat->childrenPosts->count() }})
@else
({{ $cat->childrenPosts->count() }})
@endif
@endif
@endforeach
@endforeach
@endif
@endif