@extends('layouts.frontend.app')
@push('meta')
@endpush
{{-- @section('title', setting('site_title') ) --}}
@section('content')
@php
$pop=App\Models\Slider::where('is_pop','1')->orderBy('id','desc')->first() ;
@endphp
@if (setting('SLIDER_LAYOUT_STATUS') != 0 || setting('SLIDER_LAYOUT_STATUS') == "")
@if (!empty(setting('SLIDER_LAYOUT')))
@include('frontend.partial.slider_style_' . setting('SLIDER_LAYOUT'))
@else
@include('frontend.partial.slider_style_1')
@endif
@endif
@if (setting('BELOW_SLIDER_HTML_CODE_STATUS') != 0 || setting('BELOW_SLIDER_HTML_CODE_STATUS') == "")
@php
echo setting('BELOW_SLIDER_HTML_CODE');
@endphp
@endif
@if (setting('NOTICE_STATUS') != 0 || setting('NOTICE_STATUS') == "")
@endif
@if (setting('TOP_CAT_STATUS') != 0 || setting('TOP_CAT_STATUS') == "")
{{$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