@extends('user-front.layout') @section('tab-title') {{ $keywords['Home'] ?? 'Home' }} @endsection @php Config::set('app.timezone', $userBs->timezoneinfo->timezone); @endphp @section('meta-description', !empty($userSeo) ? $userSeo->home_meta_description : '') @section('meta-keywords', !empty($userSeo) ? $userSeo->home_meta_keywords : '') @section('content') {{-- @if (isset($home_sections->intro_section) && $home_sections->intro_section == 1)
@php $aboutImg = $home_text->about_image ?? 'about.png'; @endphp
Image
@if (!empty($home_text->about_title)) {{ $home_text->about_title }} @endif

{{ $home_text->about_subtitle ?? null }}

@if (!empty($home_text->about_content))

{!! nl2br($home_text->about_content) ?? null !!}

@endif @if (!empty($home_text->about_button_url)) {{$home_text->about_button_text}} @endif
@endif --}} @if (isset($home_sections->intro_section) && $home_sections->intro_section == 1)
@php $aboutImg = $home_text->about_image ?? 'about.png'; $isAboutEmpty = empty($home_text->about_title) && empty($home_text->about_subtitle) && empty($home_text->about_content) && empty($home_text->about_button_url) && empty($home_text->about_button_text); @endphp
Image
@if ($isAboutEmpty)
About

This is the About section

@else
@if (!empty($home_text->about_title)) {{ $home_text->about_title }} @endif

{{ $home_text->about_subtitle ?? null }}

@if (!empty($home_text->about_content))

{!! nl2br($home_text->about_content) ?? null !!}

@endif @if (!empty($home_text->about_button_url)) {{ $home_text->about_button_text }} @endif @endif
@endif {{-- @if (in_array('Service', $packagePermissions) && isset($home_sections->featured_services_section) && $home_sections->featured_services_section == 1)
@if (!empty($home_text->service_title)) {{ $home_text->service_title }} @endif

{{ $home_text->service_subtitle ?? null }}

@foreach ($services as $service) @endforeach
Image
@endif --}} @if (in_array('Service', $packagePermissions) && isset($home_sections->featured_services_section) && $home_sections->featured_services_section == 1)
@php $isServiceSectionEmpty = empty($home_text->service_title) && empty($home_text->service_subtitle) && (empty($services) || count($services) == 0); @endphp @if ($isServiceSectionEmpty)
Services

This is the Services section

@else
@if (!empty($home_text->service_title)) {{ $home_text->service_title }} @endif

{{ $home_text->service_subtitle ?? null }}

@foreach ($services as $service) @endforeach
@endif
Image
@endif @if (isset($home_sections->video_section) && $home_sections->video_section == 1) @php $videoBg = $videoSectionDetails->video_section_image ?? 'video_bg_one.jpg'; $isVideoSectionEmpty = empty($videoSectionDetails->video_section_title) && empty($videoSectionDetails->video_section_subtitle) && empty($videoSectionDetails->video_section_text) && empty($videoSectionDetails->video_section_button_url) && empty($videoSectionDetails->video_section_button_text) && empty($home_text->video_section_url); @endphp
@if ($isVideoSectionEmpty) Video

This is the Video section

@else @if (!empty($videoSectionDetails->video_section_title)) {{ $videoSectionDetails->video_section_title }} @endif

{{ $videoSectionDetails->video_section_subtitle ?? null }}

@endif
@if (!$isVideoSectionEmpty) @if (!empty($videoSectionDetails->video_section_text))

{!! nl2br($videoSectionDetails->video_section_text) !!}

@endif @if (!empty($videoSectionDetails->video_section_button_url)) {{ $videoSectionDetails->video_section_button_text }} @endif @endif
@if ($isVideoSectionEmpty) @else @if (!empty($home_text->video_section_url)) @endif @endif
Line
@endif @if (in_array('Portfolio', $packagePermissions) && isset($home_sections->portfolio_section) && $home_sections->portfolio_section == 1)
@php $isPortfolioSectionEmpty = empty($home_text->portfolio_title) && empty($home_text->portfolio_subtitle) && (empty($portfolios) || count($portfolios) == 0); @endphp
@if ($isPortfolioSectionEmpty) Portfolio

This is the Portfolio section

@else @if (!empty($home_text->portfolio_title)) {{ $home_text->portfolio_title }} @endif

{{ $home_text->portfolio_subtitle ?? null }}

@endif
@if (!$isPortfolioSectionEmpty)
@foreach ($portfolios as $portfolio) @endforeach
@endif
@endif @if (isset($home_sections->why_choose_us_section) && $home_sections->why_choose_us_section == 1) @php $whyChooseImg = $home_text->why_choose_us_section_image ?? 'why_choose_us.png'; $isWhyChooseUsEmpty = empty($home_text->why_choose_us_section_title) && empty($home_text->why_choose_us_section_subtitle) && empty($home_text->why_choose_us_section_text) && empty($home_text->why_choose_us_section_button_url) && empty($home_text->why_choose_us_section_button_text); @endphp
Image
@if ($isWhyChooseUsEmpty) Why Choose Us

This is the Why Choose Us section

@else @if (!empty($home_text->why_choose_us_section_title)) {{ $home_text->why_choose_us_section_title }} @endif

{{ $home_text->why_choose_us_section_subtitle ?? null }}

@endif
@if (!$isWhyChooseUsEmpty) @if (!empty($home_text->why_choose_us_section_text))

{!! nl2br($home_text->why_choose_us_section_text) !!}

@endif @if (!empty($home_text->why_choose_us_section_button_url)) {{ $home_text->why_choose_us_section_button_text }} @endif @endif
shape shape
@endif @if (isset($home_sections->counter_info_section) && $home_sections->counter_info_section == 1) @php $isCounterInfoEmpty = empty($counterInformations) || count($counterInformations) == 0; @endphp
@if ($isCounterInfoEmpty)

This is the Counter Info section

@else
@foreach ($counterInformations as $counterInformation)

{{ $counterInformation->count }}

{{ $counterInformation->title }}

@endforeach
@endif
@endif @if (in_array('Team', $packagePermissions) && isset($home_sections->team_members_section) && $home_sections->team_members_section == 1) @php $isTeamSectionEmpty = empty($home_text->team_section_title) && empty($home_text->team_section_subtitle) && (empty($teams) || count($teams) == 0); @endphp
@if ($isTeamSectionEmpty) Team

This is the Team section

@else @if (!empty($home_text->team_section_title)) {{ $home_text->team_section_title }} @endif

{{ $home_text->team_section_subtitle ?? null }}

@endif
@if (!$isTeamSectionEmpty)
@foreach ($teams as $team)
TeamMember

{{ $team->name }}

{{ $team->rank }}
@endforeach
@endif
@endif @if (isset($home_sections->skills_section) && $home_sections->skills_section == 1) @php $isSkillsSectionEmpty = empty($home_text->skills_title) && empty($home_text->skills_subtitle) && empty($home_text->skills_content) && (empty($skills) || count($skills) == 0); @endphp
@if ($isSkillsSectionEmpty) Skills

This is the Skills section

@else @if (!empty($home_text->skills_title)) {{ $home_text->skills_title }} @endif

{{ $home_text->skills_subtitle ?? null }}

@endif
@if (!$isSkillsSectionEmpty) @if (!empty($home_text->skills_content))

{!! nl2br($home_text->skills_content ?? '') !!}

@endif @endif
@if (!$isSkillsSectionEmpty)
@foreach ($skills as $skill)

{{ $skill->title }}

@endforeach
@endif
@endif @if (isset($home_sections->testimonials_section) && $home_sections->testimonials_section == 1) @php $isTestimonialsEmpty = empty($home_text->testimonial_title) && empty($home_text->testimonial_subtitle) && (empty($testimonials) || count($testimonials) == 0); $tstmImg = $home_text->testimonial_image ?? 'testimonial.png'; @endphp
@if ($isTestimonialsEmpty) Testimonials

This is the Testimonials section

@else @if (!empty($home_text->testimonial_title)) {{ $home_text->testimonial_title }} @endif

{{ $home_text->testimonial_subtitle ?? null }}

@endif
@if (!$isTestimonialsEmpty)
@foreach ($testimonials as $testimonial)

{{ replaceBaseUrl($testimonial->content) }}

img

{{ $testimonial->name }}

{{ $testimonial->occupation ?? null }}
@endforeach
@endif
testimonial
@endif @if (isset($home_sections->brand_section) && $home_sections->brand_section == 1) @php $isBrandSectionEmpty = empty($brands) || count($brands) == 0; @endphp @if ($isBrandSectionEmpty)

This is the Brand section

{{-- You can customize or style this placeholder as needed --}}
@else
@foreach ($brands as $brand) @endforeach
@endif @endif @if (in_array('Blog', $packagePermissions) && isset($home_sections->blogs_section) && $home_sections->blogs_section == 1) @php $isBlogSectionEmpty = empty($home_text->blog_title) && empty($home_text->blog_subtitle) && (empty($blogs) || count($blogs) == 0); @endphp
@if ($isBlogSectionEmpty) Blog

This is the Blog section

@else @if (!empty($home_text->blog_title)) {{ $home_text->blog_title }} @endif

{{ $home_text->blog_subtitle ?? null }}

@endif
@if (!$isBlogSectionEmpty) @endif
@if (!$isBlogSectionEmpty)
@foreach ($blogs as $blog)

{{ $blog->title }}

{!! strlen(strip_tags($blog->content)) > 80 ? mb_substr(strip_tags($blog->content), 0, 80, 'UTF-8') . '...' : strip_tags($blog->content) !!}

{{ $keywords['Learn_More'] ?? 'Learn More' }}
@endforeach
@endif
@endif @endsection