@extends('fontend_master') @section('content') @php $slug = request()->segment(2);// Adjust the segment number based on your URL structure $category = DB::table('chlild_categories')->where('childcategory_slug', $slug)->first(); $subcategory = DB::table('sub_categories')->where('subcategory_slug', $slug)->first(); // Assuming the URL is something like http://127.0.0.1:8000/category/product/details/12 $id = $category->id; // Assuming the URL is something like http://127.0.0.1:8000/category/product/details/12 // $id = request()->segment(4); // Adjust the segment number based on your URL structure // dd($id); $slider = DB::table('sliders')->first(); $category = DB::table('chlild_categories')->get(); $productHighRange = DB::table('products')->min('selling_price'); @endphp
All category @foreach ($category as $category) {{ $category->childcategory_name }} @endforeach
Price Range
@csrf
Availability
@php $brand = DB::table('brands')->get(); @endphp
Compatible Brand
@foreach ($brand as $item) @endforeach
@foreach ($category_all as $item)
@include('frontend.pages.product_item')
@endforeach
{!! $category_all->links('pagination::bootstrap-4') !!}

Showing {{ $category_all->firstItem() }} to {{ $category_all->lastItem() }} of {{ $category_all->total() }} ({{ $category_all->lastPage() }} Pages)

@endsection