@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') == "")
New Updates
@php echo setting('CUSTOM_NOTICE'); @endphp

@endif @if (setting('TOP_CAT_STATUS') != 0 || setting('TOP_CAT_STATUS') == "")
{{-- @if (setting('TOP_CAT')) --}}

{{ setting('TOP_CAT') ?? 'Top Categories' }}

{{-- @endif --}}
@foreach ($categories_f as $category)

{{$category->name}}

@endforeach @foreach ($mini_f as $category)

{{$category->name}}

@endforeach @foreach ($sub_f as $category)

{{$category->name}}

@endforeach {{-- --}}
@push('css') @endpush @push('internal_js') $(document).ready(function(){ $('#cat_row_more').click(function(){ $('#cat_row').toggleClass('cat_row_hide'); }); }); @endpush
@endif @if (setting('HERO_SLIDER_1') != 0 || setting('HERO_SLIDER_1') == "") @if (setting('HERO_SLIDER_1_TEXT'))

{{ setting('HERO_SLIDER_1_TEXT') }}

@endif
@foreach ($sliders_f as $key => $slider_f)
@endforeach
@endif @if (setting('SELLER_STATUS') != 0 || setting('SELLER_STATUS') == "")

Sellers view all

@foreach ($shops as $shop) @endforeach
@endif {{-- @foreach($campaigns_product as $campain)

{{$campain->name}} Sell : View All

@foreach ($campain->campaing_products->where('status',0)->take(6) as $cam_products)
@php $hw=App\Models\wishlist::where('product_id', $product->id)->where('user_id',auth()->id())->first(); if($hw){ $color='#54c8ec'; }else{ $color='#a2acb5'; } if ($product->reviews->count() > 0) { $average_rating = $product->reviews->sum('rating') / $product->reviews->count(); } else { $average_rating = 0; } @endphp
@if ($average_rating == 0) @elseif ($average_rating > 0 && $average_rating < 1.5) @elseif ($average_rating >= 1.5 && $average_rating < 2) @elseif ($average_rating >= 2 && $average_rating < 2.5) @elseif ($average_rating >= 2.5 && $average_rating < 3) @elseif ($average_rating >= 3 && $average_rating < 3.5) @elseif ($average_rating >= 3.5 && $average_rating < 4) @elseif ($average_rating >= 4 && $average_rating < 4.5) @elseif ($average_rating >= 4.5 && $average_rating < 5) @elseif ($average_rating >= 5) @endif
{{$product->title}}
৳{{$cam_products->price ?? $product->discount_price ?? $product->regular_price}} @if($cam_products->price>0 || $product->discount_price>0) ৳{{$product->regular_price}}
@endif
@php $hw=App\Models\wishlist::where('product_id', $product->id)->where('user_id',auth()->id())->first(); if($hw){ $color='#54c8ec'; }else{ $color='#a2acb5'; } @endphp
@if($product->quantity <= '0' ) Pre Order @else @endif
@csrf
@push('js') @endpush @endforeach
@endforeach --}} @if (setting('LATEST_PRODUCT_STATUS') != 0 || setting('LATEST_PRODUCT_STATUS') == "")

Latest Products View All

@forelse ($products as $product) @empty @endforelse
@endif @if (setting('FEATURE_PRODUCT_STATUS') != 0 || setting('FEATURE_PRODUCT_STATUS') == "")

Featured Products View All

@forelse ($randomProducts as $randomProduct) @empty @endforelse
@endif @if (setting('HERO_SLIDER_2') != 0 || setting('HERO_SLIDER_2') == "")
@foreach (App\Models\Slider::where('status',1)->where('is_sub',1)->take(2)->get() as $key => $slider) @endforeach
@foreach (App\Models\Slider::where('status',1)->where('is_sub',1)->skip(2)->take(1)->get() as $key => $slider) @endforeach
@foreach (App\Models\Slider::where('status',1)->where('is_sub',1)->skip(3)->take(2)->get() as $key => $slider) @endforeach
@endif @if (setting('CLASSIFIED_SELL_STATUS') != 0 || setting('CLASSIFIED_SELL_STATUS') == "") @if($unproducts->count()>0)

Classified Sell View All

@foreach ($unproducts as $unproduct)
{{$unproduct->title}}
{{ setting('CURRENCY_ICON') ?? '৳' }}{{$unproduct->price}}
@endforeach
@endif @endif @if (setting('MEGA_CAT_PRODUCT_STATUS') != 0 || setting('MEGA_CAT_PRODUCT_STATUS') == "") @if(!empty(setting('mega_cat'))) @foreach(json_decode(setting('mega_cat')) as $c) @php $cat =DB::table('categories')->where('id',$c)->first(); $productIds = DB::table('category_product')->where('category_id', $c)->get()->pluck('product_id'); $products = \App\Models\Product::whereIn('id', $productIds)->take(6)->where('status',1)->get(); @endphp @if($cat) @if($products->count()>0)

{{$cat->name}} View All

@forelse ($products as $product) @empty @endforelse
@endif @endif @endforeach @endif @endif @if (setting('SUB_CAT_PRODUCT_STATUS') != 0 || setting('SUB_CAT_PRODUCT_STATUS') == "") @if(!empty(setting('sub_cat'))) @foreach(json_decode(setting('sub_cat')) as $c) @php $cat =DB::table('sub_categories')->where('id',$c)->first(); $productIds = DB::table('product_sub_category')->where('sub_category_id', $c)->get()->pluck('product_id'); $products = \App\Models\Product::whereIn('id', $productIds)->where('status',1)->take(6)->get(); @endphp @if($cat) @if($products->count()>0)

{{$cat->name}} View All

@forelse ($products as $product) @empty @endforelse
@endif @endif @endforeach @endif @endif @if (setting('MINI_CAT_PRODUCT_STATUS') != 0 || setting('MINI_CAT_PRODUCT_STATUS') == "") @if(!empty(setting('mini_cat'))) @foreach(json_decode(setting('mini_cat')) as $c) @php $cat =DB::table('mini_categories')->where('id',$c)->first(); $productIds = DB::table('mini_category_product')->where('mini_category_id', $c)->get()->pluck('product_id'); $products = \App\Models\Product::whereIn('id', $productIds)->where('status',1)->take(6)->get(); @endphp @if($cat) @if($products->count()>0)

{{$cat->name}} View All

@forelse ($products as $product) @empty @endforelse
@endif @endif @endforeach @endif @endif @if (setting('EXTRA_CAT_PRODUCT_STATUS') != 0 || setting('EXTRA_CAT_PRODUCT_STATUS') == "") @if(!empty(setting('extra_cat'))) @foreach(json_decode(setting('extra_cat')) as $c) @php $cat =DB::table('extra_mini_categories')->where('id',$c)->first(); $productIds = DB::table('extra_mini_category_product')->where('extra_mini_category_id', $c)->get()->pluck('product_id'); $products = \App\Models\Product::whereIn('id', $productIds)->where('status',1)->take(6)->get(); @endphp @if($cat) @if($products->count()>0)

{{$cat->name}} View All

@forelse ($products as $product) @empty @endforelse
@endif @endif @endforeach @endif @endif @if (setting('BRAND_STATUS') != 0 || setting('BRAND_STATUS') == "")

Shop By Brands view all

@foreach (App\Models\Brand::where('status',1)->take(7)->get() as $brand)
@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 @if (setting('NEWS_LETTER_STATUS') != 0 || setting('NEWS_LETTER_STATUS') == "") @endif @include('components.cart-modal-attri') {{-- 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') @if (env('FIREBASE_ON') == 1) @endif @endpush