@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->work_process_section) && $home_sections->work_process_section == 1) @php $isWorkProcessEmpty = empty($home_text->work_process_section_title) && empty($home_text->work_process_section_text) && (empty($work_processes) || count($work_processes) == 0); @endphp
@if ($isWorkProcessEmpty)

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_text ?? '' }}

@if (!empty($home_text->work_process_btn_url)) {{ $home_text->work_process_btn_txt ?? '' }} @endif @endif
@if (!$isWorkProcessEmpty)
@foreach ($work_processes as $key => $work_process)
{{ $work_process->title }}
@if (!empty($work_process->text))

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

@endif
@endforeach
@endif
@endif @if (isset($home_sections->video_section) && $home_sections->video_section == 1) @php $videoBg = $videoSectionDetails->video_section_image ?? 'video_bg.jpg'; $isVideoSectionEmpty = empty($videoSectionDetails->video_section_url) && empty($videoSectionDetails->video_section_title) && empty($videoSectionDetails->video_section_text); @endphp
video
@if (!$isVideoSectionEmpty && !empty($videoSectionDetails->video_section_url)) @elseif ($isVideoSectionEmpty)

This is the Video section

@endif
@if ($isVideoSectionEmpty)

Video Title Placeholder

@else

{{ $videoSectionDetails->video_section_title ?? '' }}

{{ $videoSectionDetails->video_section_text ?? '' }}

@endif
dot
@endif @php $isCounterInfoEmpty = empty($counterInformations) || count($counterInformations) == 0; @endphp
@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 --}} @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)

This is the Services section

@else

{{ $home_text->service_title ?? '' }}

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

@endif
@if (!$isServiceSectionEmpty) @endif
@endif @if (in_array('Portfolio', $packagePermissions) && isset($home_sections->portfolio_section) && $home_sections->portfolio_section == 1) @php $isPortfolioEmpty = empty($portfolios) || count($portfolios) == 0; @endphp
@if ($isPortfolioEmpty)

This is the Portfolio section

@else
@foreach ($portfolios as $portfolio)
portfolio

{{ strlen($portfolio->title) > 25 ? mb_substr($portfolio->title, 0, 25, 'UTF-8') . '...' : $portfolio->title }}

{{ $portfolio->bcategory->name }}
@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)

This is the Team section

@else @isset($home_text->team_section_title)

{{ $home_text->team_section_title ?? '' }}

@endisset

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

@endif
@if (!$isTeamSectionEmpty)
@foreach ($teams as $team)
team
{{ convertUtf8($team->rank) }}
{{ convertUtf8($team->name) }}
    @isset($team->facebook)
  • @endisset @isset($team->twitter)
  • @endisset @isset($team->instagram)
  • @endisset @isset($team->linkedin)
  • @endisset
@endforeach
@endif
@endif
{{-- Testimonials Section --}} @if (isset($home_sections->testimonials_section) && $home_sections->testimonials_section == 1) @php $isTestimonialEmpty = empty($home_text->testimonial_title) && empty($home_text->testimonial_subtitle) && (empty($testimonials) || count($testimonials) == 0); $tstmBg = $home_text->testimonial_image ?? 'testimonial_bg_3.jpg'; @endphp
@if ($isTestimonialEmpty)

This is the Testimonial section

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

{{ $home_text->testimonial_title }}

@endif

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

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

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

clients
{{ convertUtf8($testimonial->name) }}
{{ convertUtf8($testimonial->occupation) ?? null }}
@endforeach
@endif
@endif {{-- FAQ Section --}} @if (isset($home_sections->faq_section) && $home_sections->faq_section == 1) @php $isFaqEmpty = empty($home_text->faq_section_title) && empty($home_text->faq_section_subtitle) && (empty($faqs) || count($faqs) == 0); @endphp
@if ($isFaqEmpty)

This is the FAQ section

@else @isset($home_text->faq_section_title)

{{ $home_text->faq_section_title }}

@endisset

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

@endif
@if (!$isFaqEmpty)
@foreach ($faqs as $key => $faq)

{{ $faq->answer }}

@endforeach
@endif
@endif
@if (isset($home_sections->contact_section) && $home_sections->contact_section == 1)
@isset($home_text->contact_section_title)

{{ $home_text->contact_section_title }}

@endisset

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

@csrf
@if ($errors->has('fullname')) {{ $errors->first('fullname') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('fullname')) {{ $errors->first('subject') }} @endif
@if ($errors->has('message')) {{ $errors->first('message') }} @endif
quote
@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)

This is the Quote section

@else @isset($home_text->quote_section_title)

{{ $home_text->quote_section_title }}

@endisset

{{ $home_text->quote_section_subtitle ?? '' }}

@endif {{ $keywords['Request_A_Quote'] ?? 'Request A Quote' }}
@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)

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) @if ($loop->last) @continue @endif
blog
  • {{ $blog->bcategory->name }}
  • {{ \Carbon\Carbon::parse($blog->created_at)->toFormattedDateString() }}

{{ $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