@if (!empty($categories) and count($categories))
{{ trans('categories.categories') }}
@php $count = 0; $categoriesCount = count($categories); @endphp @foreach ($categories->chunk(3) as $categoryChunk)
@foreach ($categoryChunk as $category)
{{ $category->title }}
{{--
{{ $category->title }}
--}}
@if (!empty($category->subCategories) && count($category->subCategories))
@foreach ($category->subCategories as $subCategory)
{{ $subCategory->title }}
@endforeach
@endif
@endforeach
@endforeach
{{--
@foreach ($categories as $category)
{{ $category->title }}
@if (!empty($category->subCategories) and count($category->subCategories)) @foreach ($category->subCategories as $subCategory)
{{ $subCategory->title }}
@endforeach @endif @endforeach
--}}
@endif @push('scripts_bottom') @endpush