@extends('user-front.layout') @section('tab-title') {{ $keywords['Home'] ?? 'Home' }} @endsection @section('meta-description', !empty($userSeo) ? $userSeo->home_meta_description : '') @section('meta-keywords', !empty($userSeo) ? $userSeo->home_meta_keywords : '') @section('content') @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 }}

@endif
@if (!$isServiceSectionEmpty) @endif
@endif @if (isset($home_sections->intro_section) && $home_sections->intro_section == 1) @php $isAboutSectionEmpty = 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); $aboutImg = $home_text->about_image ?? 'about.jpg'; @endphp
@if ($isAboutSectionEmpty) About

This is the About section

@else @isset($home_text->about_title) {{ $home_text->about_title }} @endisset

{{ !empty($home_text->about_subtitle) ? $home_text->about_subtitle : null }}

@endif
@if (!$isAboutSectionEmpty) @isset($home_text->about_content)

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

@endisset @if (!empty($home_text->about_button_url)) {{ $home_text->about_button_text }} @endif @endif
@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 @isset($home_text->portfolio_title) {{ $home_text->portfolio_title }} @endisset

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

@endif
@if (!$isPortfolioSectionEmpty)
@foreach ($portfolios as $portfolio) @endforeach
@endif
@endif @if (isset($home_sections->faq_section) && $home_sections->faq_section == 1) @php $faqBg = $home_text->faq_section_image ?? 'faq_bg.png'; $isFaqSectionEmpty = empty($home_text->faq_section_title) && empty($home_text->faq_section_subtitle) && (empty($faqs) || count($faqs) == 0); @endphp
illustration
@if ($isFaqSectionEmpty) FAQ

This is the FAQ section

@else @isset($home_text->faq_section_title) {{ $home_text->faq_section_title }} @endisset

{{ !empty($home_text->faq_section_subtitle) ? $home_text->faq_section_subtitle : null }}

@endif
@if (!$isFaqSectionEmpty)
@foreach ($faqs as $key => $faq)
{{ $faq->answer }}
@endforeach
@endif
@endif {{-- Work Process and counter section start here --}} @if ( (isset($home_sections->counter_info_section) && $home_sections->counter_info_section == 1) || (isset($home_sections->work_process_section) && $home_sections->work_process_section == 1)) @php // Work Process empty check $isWorkProcessEmpty = empty($home_text->work_process_section_title) && empty($home_text->work_process_section_subtitle) && empty($home_text->work_process_section_text) && (empty($work_processes) || count($work_processes) == 0); // Counter Info empty check $isCounterInfoEmpty = empty($counterInformations) || count($counterInformations) == 0; @endphp
@if (isset($home_sections->work_process_section) && $home_sections->work_process_section == 1)
@if ($isWorkProcessEmpty) Work Process

This is the Work Process section

@else @isset($home_text->work_process_section_title) {{ $home_text->work_process_section_title }} @endisset

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

@endif
@if (!$isWorkProcessEmpty) @if (!empty($home_text->work_process_section_text))

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

@endif
@foreach ($work_processes as $key => $work_process)
{{ $key + 1 < 10 ? '0' . ($key + 1) : $key + 1 }}

{{ $work_process->title }}

@if (!empty($work_process->text))

{!! nl2br($work_process->text) !!}

@endif
@endforeach
@endif
@endif @if (isset($home_sections->counter_info_section) && $home_sections->counter_info_section == 1)
@if ($isCounterInfoEmpty)

This is the Counter Info section

@else
@foreach ($counterInformations as $key => $counterInformation)

{{ $counterInformation->count }}

{{ $counterInformation->title }}

@endforeach
@endif
@endif
@endif {{-- Team Section start here --}} @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 @isset($home_text->team_section_title) {{ $home_text->team_section_title }} @endisset

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

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

{{ convertUtf8($team->name) }}

{{ convertUtf8($team->rank) }}
@endforeach
@endif
@endif @if (isset($home_sections->why_choose_us_section) && $home_sections->why_choose_us_section == 1) @php $whyBg = $home_text->why_choose_us_section_image ?? 'why_choose_us_bg.jpg'; $vidBg = $home_text->why_choose_us_section_video_image ?? 'why_choose_us_video_bg.jpg'; $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) && empty($home_text->why_choose_us_section_video_url); @endphp
@if (!$isWhyChooseUsEmpty && !empty($home_text->why_choose_us_section_video_url)) @endif
@if ($isWhyChooseUsEmpty) Why Choose Us

This is the Why Choose Us section

@else @isset($home_text->why_choose_us_section_title) {{ $home_text->why_choose_us_section_title }} @endisset

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

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

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

@endisset @isset($home_text->why_choose_us_section_button_url) {{ $home_text->why_choose_us_section_button_text }} @endisset @endif
@endif @if (in_array('Request a Quote', $packagePermissions)) @if ($userBs->is_quote) @php $isQuoteSectionEmpty = empty($home_text->quote_section_title) && empty($home_text->quote_section_subtitle); @endphp
@if ($isQuoteSectionEmpty) Quote

This is the Quote section

@else @isset($home_text->quote_section_title) {{ $home_text->quote_section_title }} @endisset

{{ !empty($home_text->quote_section_subtitle) ? $home_text->quote_section_subtitle : null }}

@endif
{{ $keywords['Request_A_Quote'] ?? 'Request A Quote' }}
@endif @endif @if (isset($home_sections->testimonials_section) && $home_sections->testimonials_section == 1) @php $tstmBg = $home_text->testimonial_image ?? 'testimonial_bg_3.jpg'; $isTestimonialSectionEmpty = empty($testimonials) || count($testimonials) == 0; @endphp
@if ($isTestimonialSectionEmpty)

This is the Testimonial section

@else
@foreach ($testimonials as $testimonial)
image

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

{{ convertUtf8($testimonial->name) }}

{{ convertUtf8($testimonial->occupation) ?? null }}
@endforeach
@endif
@endif @if (isset($home_sections->contact_section) && $home_sections->contact_section == 1)
@isset($contact->contact_form_title) {{ $contact->contact_form_title }} @endisset

{{ $contact->contact_form_subtitle ?? null }}

@csrf
@error('fullname')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror
@error('subject')

{{ $message }}

@enderror
@error('message')

{{ $message }}

@enderror
@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

@else
@foreach ($brands as $brand) @endforeach
@endif
@endif @endsection