@extends('fontend_master') @section('content') @php $slug = request()->segment(2);// Adjust the segment number based on your URL structure $category = 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; // $id = request()->segment(4); $slider = DB::table('sliders')->first(); $category = DB::table('sub_categories')->get(); $productHighRange = DB::table('products')->min('selling_price'); @endphp Category / Subcategory Cateogry Product All category @foreach ($joinedCategory as $item) {{ $item->childcategory_name }} @endforeach close Price Range @csrf Availability In Stock Pre Order Up Coming @php $brand = DB::table('brands')->get(); @endphp Compatible Brand @foreach ($brand as $item) {{ $item->brand_name }} @endforeach Filter {{ strtoupper($HeadSlug) }} Show: 20 24 48 75 90 Sort By: Default Price (Low > High) Price (High > Low) @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
Showing {{ $category_all->firstItem() }} to {{ $category_all->lastItem() }} of {{ $category_all->total() }} ({{ $category_all->lastPage() }} Pages)