@extends('layouts.frontend') @section('title', Config::get('siteSetting.title')) @section('css') @endsection @section('content') @php $categories = App\Models\Category::where('parent_id', '=', null)->orderBy('orderBy', 'asc')->where('status', 1)->get(); @endphp
Products by Category
@foreach($categories as $category) @endforeach
@foreach($categories as $category)
@if(count($category->get_subcategory)>0) @foreach($category->get_subcategory as $subcategory)
{{$subcategory->name}} @if(count($subcategory->get_subchild_category)>0)
@foreach($subcategory->get_subchild_category as $childcategory) @endforeach
@endif
@endforeach @endif
@endforeach
@endsection @section('js') @endsection