@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