@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 (!is_null(@$hero_slider->hero_section_background_image)) Banner @else Banner @endif
@if (count($hero_product_sliders) == 0)
{{ $keywords['NO SLIDERS FOUND'] ?? __('NO SLIDERS FOUND') }}
@else
@foreach ($hero_product_sliders as $hero_product_slider)

{{ $hero_product_slider->title }}

{!! truncateString($hero_product_slider->summary, 110) !!}

@php $flash_info = flashAmountStatus($hero_product_slider->item_id, $hero_product_slider->current_price); $flash_status = $flash_info['status']; @endphp @if ($flash_status == true) @php $hero_new_price = symbolPrice( $userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($flash_info['amount']), ); $hero_old_price = symbolPrice( $userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($hero_product_slider->current_price), ); @endphp @else @php $hero_new_price = symbolPrice( $userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($hero_product_slider->current_price), ); $hero_old_price = symbolPrice( $userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($hero_product_slider->previous_price), ); @endphp @endif
{{ $hero_new_price }} {{ $hero_old_price }}
@endforeach @endif
@foreach ($hero_product_sliders as $hero_product_slider)
Product Product

{{ $hero_product_slider->title }}

@php $flash_info = flashAmountStatus($hero_product_slider->item_id, $hero_product_slider->current_price); $flash_status = $flash_info['status']; if ($flash_status == true) { $hero_new_price = symbolPrice( $userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($flash_info['amount']), ); } else { $hero_new_price = symbolPrice( $userCurrentCurr->symbol_position, $userCurrentCurr->symbol, currency_converter($hero_product_slider->current_price), ); } @endphp
{{ $hero_new_price }}
@endforeach
@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->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->category_section == 1)
{{ $userSec->category_section_title ?? ($keywords['CATEGORIES'] ?? __('CATEGORIES')) }}

{{ $userSec->category_section_subtitle ?? __('Category Subtitle') }}

@if (count($item_categories) == 0)
{{ $userSec->category_section_title ?? ($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->flash_section == 1) @include('user-front.fashion.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->tab_section == 1) @include('user-front.fashion.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->video_banner_section == 1)
Bg-img

{{ $userSec->video_section_title ?? __('Your Favorite Fashionable Collection Brand') }}

{{ $userSec->video_section_button_name ?? ($keywords['All Collection'] ?? __('All Collection')) }}
@endif @if (count($after_video) > 0) @foreach ($after_video as $cusVideo) @if (isset($additional_section_status[$cusVideo->id])) @if ($additional_section_status[$cusVideo->id] == 1) @php $cusVideoContent = App\Models\User\AdditionalSectionContent::where([ ['language_id', $uLang], ['addition_section_id', $cusVideo->id], ])->first(); @endphp @includeIf('user-front.additional-section', [ 'data' => $cusVideoContent, 'possition' => $cusVideo->possition, ]); @endif @endif @endforeach @endif @if ($ubs->featuers_section == 1) @endif @if (count($after_featuers) > 0) @foreach ($after_featuers as $cusFeatuers) @if (isset($additional_section_status[$cusFeatuers->id])) @if ($additional_section_status[$cusFeatuers->id] == 1) @php $cusFeatuersContent = App\Models\User\AdditionalSectionContent::where([ ['language_id', $uLang], ['addition_section_id', $cusFeatuers->id], ])->first(); @endphp @includeIf('user-front.additional-section', [ 'data' => $cusFeatuersContent, 'possition' => $cusFeatuers->possition, ]); @endif @endif @endforeach @endif {{-- Variation Modal Starts --}} @include('user-front.partials.variation-modal') {{-- Variation Modal Ends --}} @endsection