@if ( (isset($cat) && !empty($cat)) || (isset($cats) && !empty($cats)) )
@if (isset($cat) && !empty($cat)) @if (!empty(data_get($cat, 'children')))
@foreach (data_get($cat, 'children') as $iSubCat) @endforeach
@else @if (!empty(data_get($cat, 'parent.children')))
@foreach (data_get($cat, 'parent.children') as $iSubCat)
@if (data_get($iSubCat, 'id') == data_get($cat, 'id')) @if (in_array(config('settings.list.show_category_icon'), [3, 5, 7, 8])) @endif {{ data_get($iSubCat, 'name') }} @else @if (in_array(config('settings.list.show_category_icon'), [3, 5, 7, 8])) @endif {{ data_get($iSubCat, 'name') }} @endif
@endforeach
@else @includeFirst([config('larapen.core.customizedViewPath') . 'search.inc.categories-root', 'search.inc.categories-root']) @endif @endif @else @includeFirst([config('larapen.core.customizedViewPath') . 'search.inc.categories-root', 'search.inc.categories-root']) @endif
@endif