@extends('frontend.layouts.app') @section('content') @php $lang = get_system_language()->code; @endphp @if (count($featured_categories) > 0)
@endif
@if (get_setting('home_slider_images', null, $lang) != null) @endif
@php $flash_deal = get_featured_flash_deal(); $flash_deal_bg = get_setting('flash_deal_bg_color'); $flash_deal_bg_full_width = (get_setting('flash_deal_bg_full_width') == 1) ? true : false; $flash_deal_banner_menu_text = ((get_setting('flash_deal_banner_menu_text') == 'dark') || (get_setting('flash_deal_banner_menu_text') == null)) ? 'text-dark' : 'text-white'; @endphp @if ($flash_deal != null)
@php $flash_deal_products = get_flash_deal_products($flash_deal->id); @endphp
@endif @php $todays_deal_section_bg = get_setting('todays_deal_section_bg_color'); @endphp
@if (addon_is_activated('preorder')) @php $homepreorder_banner_1Images = get_setting('home_preorder_banner_1_images', null, $lang); @endphp @if ($homepreorder_banner_1Images != null)
@php $banner_2_imags = json_decode($homepreorder_banner_1Images); $data_md = count($banner_2_imags) >= 2 ? 2 : 1; $home_preorder_banner_1_links = get_setting('home_preorder_banner_1_links', null, $lang); @endphp
@endif @endif @php $homeBanner2Images = get_setting('home_banner2_images', null, $lang); @endphp @if ($homeBanner2Images != null)
@php $banner_2_imags = json_decode($homeBanner2Images); $data_md = count($banner_2_imags) >= 2 ? 2 : 1; $home_banner2_links = get_setting('home_banner2_links', null, $lang); @endphp
@endif @php $homeBanner3Images = get_setting('home_banner3_images', null, $lang); $col_val = 6; if ($homeBanner3Images != null){ $col_val = 4; } @endphp
@if ($homeBanner3Images != null)
@php $banner_3_imags = json_decode($homeBanner3Images); $home_banner3_links = get_setting('home_banner3_links', null, $lang); @endphp
@endif
@if (get_setting('vendor_system_activation') == 1) @php $best_selers = get_best_sellers(10); $homeBanner4Images = get_setting('home_banner4_images', null, $lang); $data_rows = 1; $xxl_items = 5; $xl_items = 4; $lg_items = 3.4; $md_items = 2.5; if ($homeBanner4Images != null){ $data_rows = 2; $xxl_items = 2; $xl_items = 2; $lg_items = 2; $md_items = 3; } @endphp @if (count($best_selers) > 0)
@if ($homeBanner4Images != null)
@php $banner_4_imags = json_decode($homeBanner4Images); $home_banner4_links = get_setting('home_banner4_links', null, $lang); @endphp
@endif

{{ translate('Top Sellers') }}

@endif @endif @if (get_setting('top_brands') != null) @php $top_brands = json_decode(get_setting('top_brands')); $brands = get_brands($top_brands); $homeBanner5Images = get_setting('home_banner5_images', null, $lang); $homeBanner6Images = get_setting('home_banner6_images', null, $lang); $col_val = 'col-xl-4'; $data_rows = 3; $xxl_items = 2; $xl_items = 2; $lg_items = 4; $md_items = 3; $sm_items = 2; $xs_items = 1.4; if ($homeBanner5Images == null && $homeBanner6Images == null){ $data_rows = 2; $xxl_items = 6; $xl_items = 5; } elseif ($homeBanner5Images == null || $homeBanner6Images == null) { $col_val = 'col-xxl-8 col-xl-6'; $data_rows = 3; $xxl_items = 2; $xl_items = 3; } @endphp

{{ translate('Top Brands') }}

@if ($homeBanner5Images != null) @php $banner_5_imags = json_decode($homeBanner5Images); $home_banner5_links = get_setting('home_banner5_links', null, $lang); @endphp
@endif @if ($homeBanner6Images != null) @php $banner_6_imags = json_decode($homeBanner6Images); $home_banner6_links = get_setting('home_banner6_links', null, $lang); @endphp
@endif
@endif @if (addon_is_activated('auction'))
@endif @if (get_setting('coupon_system') == 1)
{{ translate(get_setting('cupon_title')) }}
{{ translate(get_setting('cupon_subtitle')) }}
@endif @if (get_setting('classified_product') == 1) @php $classified_products = get_home_page_classified_products(6); @endphp @if (count($classified_products) > 0)

{{ translate('Classified Ads') }}

@php $classifiedBannerImage = get_setting('classified_banner_image_small', null, $lang); @endphp
@endif @endif @if (addon_is_activated('preorder')) @include('preorder.frontend.home_page.newest_preorder') @endif
@endsection