@extends('frontend.layouts.app') @section('content') {{-- Categories , Sliders . Today's deal --}}
@include('frontend.partials.category_menu')
@php $num_todays_deal = count($todays_deal_products); @endphp
@if (get_setting('home_slider_images') != null) @endif @if (count($featured_categories) > 0) @endif
@if($num_todays_deal > 0)
{{ translate('Todays Deal') }} {{ translate('Hot') }}
@endif
{{-- Banner section 1 --}} @if (get_setting('home_banner1_images') != null)
@php $banner_1_imags = json_decode(get_setting('home_banner1_images')); @endphp @foreach ($banner_1_imags as $key => $value) @endforeach
@endif {{-- Flash Deal --}} @php $flash_deal = \App\Models\FlashDeal::where('status', 1)->where('featured', 1)->first(); @endphp @if($flash_deal != null && strtotime(date('Y-m-d H:i:s')) >= $flash_deal->start_date && strtotime(date('Y-m-d H:i:s')) <= $flash_deal->end_date)

{{ translate('Flash Sale') }}

{{ translate('View More') }}
@endif
@if (count($newest_products) > 0)

{{ translate('New Products') }}

@endif
{{-- Featured Section --}} {{-- Best Selling --}}
@if(addon_is_activated('auction'))
@endif {{-- Banner Section 2 --}} @if (get_setting('home_banner2_images') != null)
@php $banner_2_imags = json_decode(get_setting('home_banner2_images')); @endphp @foreach ($banner_2_imags as $key => $value) @endforeach
@endif {{-- Category wise Products --}}
{{-- Classified Product --}} @if(get_setting('classified_product') == 1) @php $classified_products = \App\Models\CustomerProduct::where('status', '1')->where('published', '1')->take(10)->get(); @endphp @if (count($classified_products) > 0)

{{ translate('Classified Ads') }}

{{ translate('View More') }}
@endif @endif {{-- Banner Section 2 --}} @if (get_setting('home_banner3_images') != null)
@php $banner_3_imags = json_decode(get_setting('home_banner3_images')); @endphp @foreach ($banner_3_imags as $key => $value) @endforeach
@endif {{-- Best Seller --}}
{{-- Top 10 categories and Brands --}} @if (get_setting('top10_categories') != null && get_setting('top10_brands') != null)
@if (get_setting('top10_categories') != null)

{{ translate('Top 10 Categories') }}

{{ translate('View All Categories') }}
@php $top10_categories = json_decode(get_setting('top10_categories')); @endphp @foreach ($top10_categories as $key => $value) @php $category = \App\Models\Category::find($value); @endphp @if ($category != null) @endif @endforeach
@endif @if (get_setting('top10_brands') != null)

{{ translate('Top 10 Brands') }}

{{ translate('View All Brands') }}
@php $top10_brands = json_decode(get_setting('top10_brands')); @endphp @foreach ($top10_brands as $key => $value) @php $brand = \App\Models\Brand::find($value); @endphp @if ($brand != null) @endif @endforeach
@endif
@endif @endsection @section('script') @endsection