@extends('front.layouts.app') @section('content') Home / Shop Products @if(request()->has('cat')) @endif @if(request()->has('brand_id')) @endif Price - @if(request()->has('cat')) @endif @if(request()->has('brand_id')) @endif Categories @foreach($categories as $category) {{ $category->name }} @if($category->SubCategories->count() > 0) @foreach($category->SubCategories as $subcategory) {{ $subcategory->name }} @endforeach @endif @endforeach Brands @foreach($brands as $brand) {{ $brand->name }} @endforeach @if(sizeof($products)>0) Showing {{ $products->firstItem() }} –{{ $products->lastItem() }} of {{ $products->total() }} results @endif @if(sizeof($products)==0) No Products! @endif @foreach($products as $product) {{$product->product_name}} ${{$product->price}} Details @endforeach {!! view('front.pages.paging',['items'=>$products])->render() !!} @endsection @push('js')
Showing {{ $products->firstItem() }} –{{ $products->lastItem() }} of {{ $products->total() }} results
${{$product->price}}