@foreach ($home_settings as $home_setting) @if($home_setting->home_settings_device == 'website' && $home_setting->home_settings_status == '1') @if(in_array($home_setting->home_settings_key,['bestSales','lastArrivedProducts','homeProducts','discountProducts','dailyOfferProducts']) && $showProductsSections && view()->exists('themes.theme7.homeSections.products')) @php $showProductsSections = false ; @endphp @include('themes.theme7.homeSections.products',['home_settings'=>$home_settings]) @else @if(view()->exists('themes.theme7.homeSections.'.$home_setting->home_settings_key)) @include('themes.theme7.homeSections.'.$home_setting->home_settings_key) @endif @endif @endif @endforeach {{-- @include('themes.theme7.includes.staticSection') --}} @if(isset($advertisements->home_popup) && $advertisements->home_popup && sizeof($advertisements->home_popup) > 0) @include('includes.popupModal',['popupAdvertisement'=>$advertisements->home_popup[0] ]) @endif @if(isset($order_rating) && $order_rating && isset($order) && $order && $account->accounts_show_orders_ratings == '1') @include('includes.orderRatingModal',['order'=>$order ]) @endif