@extends('frontend.layouts.app') @section('content') @php $lang = get_system_language()->code; @endphp
@include('frontend.'.get_setting("homepage_select").'.partials.category_menu')
@if (get_setting('home_slider_images', null, $lang) != null) @endif
@php $flash_deal = get_featured_flash_deal(); @endphp @if ($flash_deal != null)
@php $flash_deal_products = get_flash_deal_products($flash_deal->id); @endphp
@endif
@if (count($featured_categories) > 0)

{{ translate('Featured Categories') }}

@foreach ($featured_categories->take(6) as $key => $category) @php $category_name = $category->getTranslation('name'); @endphp
{{ $category->getTranslation('name') }}
{{ $category_name }}
@foreach ($category->childrenCategories->take(5) as $key => $child_category)

{{ $child_category->getTranslation('name') }}

@endforeach
@endforeach
@endif @php $homeBanner1Images = get_setting('home_banner1_images', null, $lang); @endphp @if ($homeBanner1Images != null)
@php $banner_1_imags = json_decode($homeBanner1Images); $data_md = count($banner_1_imags) >= 2 ? 2 : 1; $home_banner1_links = get_setting('home_banner1_links', null, $lang); @endphp
@endif @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); @endphp @if ($homeBanner3Images != null)
@php $banner_3_imags = json_decode($homeBanner3Images); $data_md = count($banner_3_imags) >= 2 ? 2 : 1; $home_banner3_links = get_setting('home_banner3_links', null, $lang); @endphp
@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 (addon_is_activated('preorder')) @include('preorder.frontend.home_page.newest_preorder') @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', null, $lang); $classifiedBannerImageSmall = get_setting('classified_banner_image_small', null, $lang); @endphp @if ($classifiedBannerImage != null || $classifiedBannerImageSmall != null)
{{ env('APP_NAME') }} promo
{{ env('APP_NAME') }} promo
@endif
@foreach ($classified_products as $key => $classified_product)

{{ $classified_product->getTranslation('name') }}

{{ $classified_product->user ? $classified_product->user->name : '' }}
{{ single_price($classified_product->unit_price) }}
@if ($classified_product->conditon == 'new') {{ translate('New') }} @elseif($classified_product->conditon == 'used') {{ translate('Used') }} @endif
@endforeach
@endif @endif @if (get_setting('vendor_system_activation') == 1) @php $best_selers = get_best_sellers(10); @endphp @if (count($best_selers) > 0)

{{ translate('Top Sellers') }}

@endif @endif @if (get_setting('top_brands') != null)

{{ translate('Top Brands') }}

@php $top_brands = json_decode(get_setting('top_brands')); $brands = get_brands($top_brands); @endphp @foreach ($brands as $brand) @endforeach
@endif @endsection