@extends('layouts.frontend.app') @push('meta') @endpush {{-- @section('title', setting('site_title') ) --}} @section('content') @if (setting('TOP_CAT_STATUS') != 0 || setting('TOP_CAT_STATUS') == "")
@foreach ($categories_f as $category)

{{$category->name}}

@endforeach @foreach ($mini_f as $category)

{{$category->name}}

@endforeach @foreach ($sub_f as $category)

{{$category->name}}

@endforeach
@endif @if (setting('CATEGORY_SMALL_SUMMERY') != 0 || setting('CATEGORY_SMALL_SUMMERY') == "")
@foreach ($collections as $key => $collection)

{{$collection->name}}

@php $categoryIds = $collection->categories->pluck('id'); $productIds = DB::table('category_product')->whereIn('category_id', $categoryIds)->get()->pluck('product_id'); $products = \App\Models\Product::whereIn('id', $productIds)->where('status',1)->count(); @endphp

{{$products}} products

@endforeach
@endif {{-- Catgory Collups and Expand System --}} @push('internal_css').superCatHomeToggle{height:330px;overflow-y:hidden;}.superCatHomeToggle #superCatViewAll{bottom:0;}#superCatViewAll{position:absolute;bottom:-1.5rem;left:0;right:0;background:var(--MAIN_MENU_BG);color:var(--MAIN_MENU_ul_li_color);z-index:999;outline:none;}@endpush @push('js') @endpush {{-- / Catgory Collups and Expand System --}} @endsection @push('js') @endpush