@extends('layouts.app') @section('content')

Home Page

Hero Section

@php $heroInfo = $results->where('section', 'hero')->first(); $heroContent = (!empty($heroInfo->content) ? json_decode($heroInfo->content) : ''); $heroTitle = (!empty($heroContent->title) ? $heroContent->title : ''); $heroSubtitle = (!empty($heroContent->subtitle) ? $heroContent->subtitle : ''); $heroButtonText = (!empty($heroContent->button_text) ? $heroContent->button_text : ''); $heroButtonLink = (!empty($heroContent->button_link) ? $heroContent->button_link : ''); $heroImage = (!empty($heroContent->image) ? $heroContent->image : ''); @endphp
@csrf

Statistics Section

@php $statisticsInfo = $results->where('section', 'statistics')->first(); $statisticsContent = (!empty($statisticsInfo->content) ? json_decode($statisticsInfo->content) : ''); $statisticsTitle = (!empty($statisticsContent->title) ? $statisticsContent->title : ''); $statisticsTags = (!empty($statisticsContent->tagline) ? $statisticsContent->tagline : ''); $statisticsSubtitle = (!empty($statisticsContent->subtitle) ? $statisticsContent->subtitle : ''); $statisticsFoundedSince = (!empty($statisticsContent->founded_since) ? $statisticsContent->founded_since : ''); $statisticsActivePost = (!empty($statisticsContent->active_post) ? $statisticsContent->active_post : ''); $statisticsImage = (!empty($statisticsContent->image) ? $statisticsContent->image : ''); @endphp
@csrf
@if (!empty($statisticsTags)) @foreach ($statisticsTags as $value)
{!! config('icons.close') !!}
@endforeach @endif

Choose Us Section

@php $chooseUsInfo = $results->where('section', 'chooseUs')->first(); $chooseUsContent = (!empty($chooseUsInfo->content) ? json_decode($chooseUsInfo->content) : ''); $chooseUsTitle = (!empty($chooseUsContent->title) ? $chooseUsContent->title : ''); $chooseUsSubtitle = (!empty($chooseUsContent->subtitle) ? $chooseUsContent->subtitle : ''); @endphp
@csrf

Testimonials Section

@php $testimonialInfo = $results->where('section', 'testimonial')->first(); $testimonialContent = (!empty($testimonialInfo->content) ? json_decode($testimonialInfo->content) : ''); $testimonialTitle = (!empty($testimonialContent->title) ? $testimonialContent->title : ''); $testimonialSubtitle = (!empty($testimonialContent->subtitle) ? $testimonialContent->subtitle : ''); @endphp
@csrf

Team Section

@php $teamInfo = $results->where('section', 'team')->first(); $teamContent = (!empty($teamInfo->content) ? json_decode($teamInfo->content) : ''); $teamTitle = (!empty($teamContent->title) ? $teamContent->title : ''); $teamSubtitle = (!empty($teamContent->subtitle) ? $teamContent->subtitle : ''); @endphp
@csrf

Faq's Section

@php $faqInfo = $results->where('section', 'faq')->first(); $faqContent = (!empty($faqInfo->content) ? json_decode($faqInfo->content) : ''); $faqTitle = (!empty($faqContent->title) ? $faqContent->title : ''); $faqSubtitle = (!empty($faqContent->subtitle) ? $faqContent->subtitle : ''); @endphp
@csrf

Blog Section

@php $blogInfo = $results->where('section', 'blog')->first(); $blogContent = (!empty($blogInfo->content) ? json_decode($blogInfo->content) : ''); $blogTitle = (!empty($blogContent->title) ? $blogContent->title : ''); $blogSubtitle = (!empty($blogContent->subtitle) ? $blogContent->subtitle : ''); @endphp
@csrf
@endsection @push('headerPartial') @endpush @push('footerPartial') @endpush