@extends('user-front.layout') @section('meta-description', !empty($seo) ? $seo->home_meta_description : '') @section('meta-keywords', !empty($seo) ? $seo->home_meta_keywords : '') @section('page-title', $keywords['Home'] ?? __('Home')) @section('og-meta') @endsection @php $additional_section_status = json_decode($userBs->additional_section_status, true); @endphp @section('content') @if ($ubs->slider_section == 1)
@if (count($sliders) > 0) @foreach ($sliders->where('is_static', 0) as $slider)
Banner
{{ $slider->title }}

{{ $slider->subtitle }}

{{ $slider->text }}

@if ($slider->btn_url && $slider->btn_name) {{ $slider->btn_name }} @endif
@endforeach @else
Banner
{{ __('Slider Title') }}

{{ __('Slider Subtitle') }}

{{ __('Lorem ipsum dolor sit amet consectetur') }}

{{ $keywords['Explore More'] ?? __('Explore More') }}
@endif
@if ($ubs->top_right_banner_section == 1)
@if ($banners) @for ($i = 0; $i < count($banners); $i++) @if ($banners[$i]->position == 'right')
@endif @endfor @endif
@if ($banners) @php $rightBanners = $banners->where('position', 'right')->values(); @endphp @if (count($rightBanners) > 0)
@endif @endif @endif
@endif @if (count($after_hero) > 0) @foreach ($after_hero as $cusHero) @if (isset($additional_section_status[$cusHero->id])) @if ($additional_section_status[$cusHero->id] == 1) @php $cusHeroContent = App\Models\User\AdditionalSectionContent::where([ ['language_id', $uLang], ['addition_section_id', $cusHero->id], ])->first(); @endphp @includeIf('user-front.additional-section', [ 'data' => $cusHeroContent, 'possition' => $cusHero->possition, ]); @endif @endif @endforeach @endif @if ($ubs->category_section == 1)

{{ $userSec->category_section_title ?? ($keywords['Categories'] ?? __('Categories')) }}

@if (count($item_categories) == 0)
{{ $keywords['NO CATEGORIES FOUND'] ?? __('NO CATEGORIES FOUND') }}
@else @endif
@endif @if (count($after_category) > 0) @foreach ($after_category as $cusCategory) @if (isset($additional_section_status[$cusCategory->id])) @if ($additional_section_status[$cusCategory->id] == 1) @php $cusCategoryContent = App\Models\User\AdditionalSectionContent::where([ ['language_id', $uLang], ['addition_section_id', $cusCategory->id], ])->first(); @endphp @includeIf('user-front.additional-section', [ 'data' => $cusCategoryContent, 'possition' => $cusCategory->possition, ]); @endif @endif @endforeach @endif @if ($ubs->middle_banner_section == 1) @endif @if (count($after_middle_banner) > 0) @foreach ($after_middle_banner as $cusMiddleBanner) @if (isset($additional_section_status[$cusMiddleBanner->id])) @if ($additional_section_status[$cusMiddleBanner->id] == 1) @php $cusMiddleBannerContent = App\Models\User\AdditionalSectionContent::where([ ['language_id', $uLang], ['addition_section_id', $cusMiddleBanner->id], ])->first(); @endphp @includeIf('user-front.additional-section', [ 'data' => $cusMiddleBannerContent, 'possition' => $cusMiddleBanner->possition, ]); @endif @endif @endforeach @endif @if ($ubs->flash_section == 1) @include('user-front.grocery.flash_content') @endif @if (count($after_flash) > 0) @foreach ($after_flash as $cusFlash) @if (isset($additional_section_status[$cusFlash->id])) @if ($additional_section_status[$cusFlash->id] == 1) @php $cusFlashContent = App\Models\User\AdditionalSectionContent::where([ ['language_id', $uLang], ['addition_section_id', $cusFlash->id], ])->first(); @endphp @includeIf('user-front.additional-section', [ 'data' => $cusFlashContent, 'possition' => $cusFlash->possition, ]); @endif @endif @endforeach @endif @if ($ubs->featuers_section == 1) @endif @if (count($after_featuers) > 0) @foreach ($after_featuers as $cusHowWork) @if (isset($additional_section_status[$cusHowWork->id])) @if ($additional_section_status[$cusHowWork->id] == 1) @php $cusHowWorkContent = App\Models\User\AdditionalSectionContent::where([ ['language_id', $uLang], ['addition_section_id', $cusHowWork->id], ])->first(); @endphp @includeIf('user-front.additional-section', [ 'data' => $cusHowWorkContent, 'possition' => $cusHowWork->possition, ]); @endif @endif @endforeach @endif @if ($ubs->tab_section == 1) @include('user-front.grocery.tab_content') @endif @if (count($after_tab) > 0) @foreach ($after_tab as $cusTab) @if (isset($additional_section_status[$cusTab->id])) @if ($additional_section_status[$cusTab->id] == 1) @php $cusTabContent = App\Models\User\AdditionalSectionContent::where([ ['language_id', $uLang], ['addition_section_id', $cusTab->id], ])->first(); @endphp @includeIf('user-front.additional-section', [ 'data' => $cusTabContent, 'possition' => $cusTab->possition, ]); @endif @endif @endforeach @endif @if ($ubs->cta_section_status == 1)
Bg-img

{{ $userSec->call_to_action_section_title ?? ($keywords['We Make Your Daily Life More Easy'] ?? __('We Make Your Daily Life More Easy')) }}

{{ $userSec->call_to_action_section_text ?? ($keywords['Subscribe to Our Newsletter'] ?? __('Subscribe to Our Newsletter')) }}
@if (!is_null(@$userSec->call_to_action_section_button_url)) {{ $userSec->call_to_action_section_button_text }} @endif
@if (@$userSec->action_section_side_image) Image @else Image @endif
@endif @if (count($after_call_to_action) > 0) @foreach ($after_call_to_action as $cusSubscribe) @if (isset($additional_section_status[$cusSubscribe->id])) @if ($additional_section_status[$cusSubscribe->id] == 1) @php $cusSubscribeContent = App\Models\User\AdditionalSectionContent::where([ ['language_id', $uLang], ['addition_section_id', $cusSubscribe->id], ])->first(); @endphp @includeIf('user-front.additional-section', [ 'data' => $cusSubscribeContent, 'possition' => $cusSubscribe->possition, ]); @endif @endif @endforeach @endif
@if ($ubs->bottom_left_banner_section == 1)
@if ($banners) @php $find = false; @endphp @foreach ($banners as $banner) @if ($banner->position == 'bottom_left' && $find == false) @php $find = true; @endphp @endif @endforeach @endif
@endif @if ($ubs->top_rated_section == 1) @include('user-front.grocery.rated_content') @endif @if ($ubs->top_selling_section == 1) @include('user-front.grocery.selling_content') @endif
@if (count($after_top_rate_top_selling) > 0) @foreach ($after_top_rate_top_selling as $cusTopSR) @if (isset($additional_section_status[$cusTopSR->id])) @if ($additional_section_status[$cusTopSR->id] == 1) @php $cusTopSRContent = App\Models\User\AdditionalSectionContent::where([ ['language_id', $uLang], ['addition_section_id', $cusTopSR->id], ])->first(); @endphp @includeIf('user-front.additional-section', [ 'data' => $cusTopSRContent, 'possition' => $cusTopSR->possition, ]); @endif @endif @endforeach @endif
{{-- Variation Modal Starts --}} @include('user-front.partials.variation-modal') {{-- Variation Modal Ends --}} @endsection @section('scripts') @endsection