@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
{{-- @dd($category[0]->category_banner_img); --}} {{-- category->category_banner_img --}} @if (isset($category->category_banner_img)) @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 ($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)

@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