@extends('frontend.layouts.app') @section('content') {{-- Categories , Sliders . Today's deal --}}
@include('frontend.partials.category_menu')
@if (get_setting('home_slider_images') != null) @endif @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 @if (count($featured_categories) > 0) @endif
@if($num_todays_deal > 0)
{{ translate('Todays Deal') }} {{ translate('Hot') }}
@foreach (filter_products(\App\Product::where('published', 1)->where('todays_deal', '1'))->get() as $key => $product) @if ($product != null) @endif @endforeach
@endif
{{-- Banner section 1 --}} {{-- Flash Deal --}} @php $flash_deal = \App\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 {{-- Featured Section --}} {{-- Best Selling --}}
{{-- 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\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 --}} @if (get_setting('vendor_system_activation') == 1)
@endif {{-- 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\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\Brand::find($value); @endphp @if ($brand != null) @endif @endforeach
@endif
@endif @endsection @section('script') @endsection