@php $categories = App\Models\Category::with('subcategory')->whereStatus(1)->orderby('serial', 'asc')->take(8)->get(); $brands = App\Models\Brand::where(['status' => '1', 'is_popular' => '1']) ->orderby('id', 'asc') ->take(8) ->get(); @endphp

format_list_bulleted {{ __('Categories') }}

@foreach ($categories as $key => $pcategory)
{{-- --}} {{ $pcategory->name }} @if ($pcategory->subcategory->count() > 0) @endif @if ($pcategory->subcategory->count() > 0)
@foreach ($pcategory->subcategory as $scategory)
{{ $scategory->name }} @if ($scategory->childcategory->count() > 0) @endif @if ($scategory->childcategory->count() > 0)
@foreach ($scategory->childcategory as $childcategory) {{ $childcategory->name }} @endforeach
{{ __('โปรโมชั่น') }} HOT! {{ __('ขายดี') }} local_fire_department
{{ __('แบรนด์ยอดนิยม') }}
{{-- brand popular --}} {{-- brand page --}} @foreach ($brands as $brand)
@endforeach
{{--

--}}
@endif
@endforeach
@endif
@endforeach {{-- --}} {{ __('All Categories') }}