@extends('frontend.layouts.web.app') @section('content')
@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)
{{ env('APP_NAME') }} promo
@endforeach @endif
{{-- brands --}} @if(count($brands)>0)

{{translate('brands')}}

@foreach($brands as $brand) @endforeach
@endif
@if (count($newest_products) > 0)

{{translate('New Arrivals')}}

@foreach($newest_products as $key=>$product) @if($key <=3) @endif @endforeach
@if($newest_products->count()>4)
@foreach($newest_products as $key=>$product) @if($key >= 4) @endif @endforeach
@endif
@endif @if (count($featured_products) > 0)

{{translate('Trending')}}

@foreach($featured_products as $key=>$product) @if($key <=3) @endif @endforeach
@if($featured_products->count()>4)
@foreach($featured_products as $key=>$product) @if($key >= 4) @endif @endforeach
@endif
@endif @if (get_setting('best_selling') == 1) @if(count($best_selling_products)> 0)

{{translate('Best Selling')}}

@foreach($best_selling_products as $key=>$product) @if($key <=3) @endif @endforeach
@if($best_selling_products->count()>4)
@foreach($newest_products as $key=>$product) @if($key >= 4) @endif @endforeach
@endif
@endif @endif
@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) @endif
@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)
{{ env('APP_NAME') }} promo
@endforeach @endif
@if(count($todays_deal_products)>0)

{{translate('Todays Deal')}} Hot

{{translate('view all')}}
@foreach($todays_deal_products as $key=>$product) @endforeach
@endif @if(count($all_products)>0)

{{translate('Products')}}

{{translate('view all')}}
@foreach($all_products as $key=>$product) @endforeach
@endif
@if(count($blogs)>0)
@foreach($blogs as $blog)
{{ $blog->getTranslation('name') }}
{{ $blog->category?$blog->category->category_name:''}}

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

By Mr Admin /

@endforeach
@endif
@endsection @section('script') @endsection