@php $type = $type ?? config('constant.category.page'); $id = $id ?? 0; $locale = $locale ?? app()->getLocale(); $categories = \App\Module\Db\Category::getInstance()->getCategoriesByActive($type,$id,$locale); @endphp @if(isset($categories) && is_array($categories) && count($categories) > 0)