@extends('frontend.layouts.app') @section('content')
@if (get_setting('home_slider_images', null, $lang) != null) @endif
@if (count($featured_categories) > 0)
@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 (get_setting('home_banner3_images') != null)
@php $banner_3_imags = json_decode(get_setting('home_banner3_images', null, $lang)); $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 (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)
@php $classifiedBannerImage = get_setting('classified_banner_image', null, $lang); $classifiedBannerImageSmall = get_setting('classified_banner_image_small', null, $lang); @endphp @if (get_setting('classified_banner_image') != null || get_setting('classified_banner_image_small') != null)
{{ env('APP_NAME') }} promo
{{ env('APP_NAME') }} promo
@endif

{{ translate('Classified Ads') }}

@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('coupon_system') == 1)
{{ translate(get_setting('cupon_title')) }}
{{ translate(get_setting('cupon_subtitle')) }}
@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') }}

@endif
@endsection