@extends('fontend_master') @section('content') @php // 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 $slider = DB::table('sliders')->first(); // $category = DB::table('categories')->get(); $productHighRange = DB::table('products')->min('selling_price'); @endphp
{{--
@if (isset($brand->brand_logo)) @else Img not available @endif
--}}
{{--
All category @foreach ($categoryloop as $category) {{ $category->subcategory_name }} @endforeach
--}}
Price Range
@csrf
Availability
@php $brand = DB::table('brands')->get(); @endphp {{--
Compatible Brand
@foreach ($brand as $item) @endforeach
--}}
@foreach ($products as $item)
@include('frontend.pages.product_item')
@endforeach
{!! $products->links('pagination::bootstrap-4') !!}

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

@php // dd($category); @endphp @if (isset($category) && isset($category->category_footer_text)) {!! $category->category_footer_text !!} {{-- {{htmlspecialchars($category->category_footer_text) }} --}} @else {{-- Text not available --}} @endif
@endsection