@extends('frontend.master.master') @section('computer') @endsection @section('content')

Category

@if (!empty($_GET['category'])) @php $filter_cats = explode(',', $_GET['category']); @endphp @endif @foreach ($categories as $category)
{{App\Models\Product::where('category_id', $category->id)->count()}}
@endforeach

Category Products

@if (App\Models\Product::where('status', '1')->where('category_id', $category_id_num)->exists()) @endif
@endsection @section('mobile') @endsection @section('footer_script') @endsection