@php $groupedCategories = $categories->groupBy('parent_id'); $currentCategories = $groupedCategories->get(0); $limit = theme_option('ecommerce_header_categories_limit', 10); @endphp @if($currentCategories) @php $hasMoreCategories = $currentCategories->count() > $limit + 1; @endphp
@if (theme_option('collapsing_product_categories_on_homepage', 'no') == 'yes' || theme_option('header_style', 'default') == 'collapsed') {{ __('Categories') }} @else {{ __('Categories') }} @endif
theme_option('collapsing_product_categories_on_homepage', 'no') == 'yes' || url()->current() != BaseHelper::getHomepageUrl()])> @if($hasMoreCategories)
{{ __('More Categories') }}
@endif
@endif