@extends('frontend.main_master') @section('main')

Men's Clothing

@foreach($mens_categories as $cat) @php $category_name = str_replace(' ', '-', strtolower($cat->category_name)); @endphp @php $sub_categories = App\Models\SubCategory::where('category_id', $cat->id)->get(); $counts = $sub_categories->count(); @endphp @endforeach

Women's Clothing

@foreach($womens_categories as $cat) @php $category_name = str_replace(' ', '-', strtolower($cat->category_name)); @endphp @php $sub_categories = App\Models\SubCategory::where('category_id', $cat->id)->get(); $counts = $sub_categories->count(); @endphp @endforeach

Kids's Clothing

@foreach($kids_categories as $cat) @php $category_name = str_replace(' ', '-', strtolower($cat->category_name)); @endphp @php $sub_categories = App\Models\SubCategory::where('category_id', $cat->id)->get(); $counts = $sub_categories->count(); @endphp @endforeach

Baby Clothing

@foreach($baby_categories as $cat) @php $category_name = str_replace(' ', '-', strtolower($cat->category_name)); @endphp @php $sub_categories = App\Models\SubCategory::where('category_id', $cat->id)->get(); $counts = $sub_categories->count(); @endphp @endforeach
@endsection