@extends('themes.frontend.layouts.app')
@section('slick') @stop
@section('wow') @stop
@section('magnific-popup') @endsection
@section('validate') @stop
@section('flatpickr') @stop

@if (isset($dataArr['meta_title']))
@section('page-title'){{ $dataArr['meta_title'] }}@stop
@else
@section('page-title'){{ $dataArr['title'] }}@stop
@endif
@if (isset($dataArr['meta_key']))
@section('meta-keywords'){{ $dataArr['meta_key'] }}@stop
@endif
@if (isset($dataArr['meta_descp']))
@section('meta-description'){{ $dataArr['meta_descp'] }}@stop
@endif
@if (isset($dataArr['image_path']))
@section('meta-image'){{ $dataArr['image_path'] }}@stop
@endif
@if ($dataArr['full_url'])
@section('cur-url'){{ $dataArr['full_url'] }}@stop
@endif


@push('styles')
@if(isset($dataArr['custom_fields']['textarea_4']) && $dataArr['custom_fields']['textarea_4'] && $dataArr['custom_fields']['textarea_4']['value'])
<!--====== START: CUSTOM PAGE CSS from backed the Page ======-->
<style scoped>
	{
		! ! $dataArr['custom_fields']['textarea_4']['value'] ! !
	}
</style>
<!--====== END: CUSTOM PAGE CSS from backed the Page ======-->
@endif
@endpush

@section('content')

@if(isset($dataArr['custom_fields']['moduleDropdown_8']) && $dataArr['custom_fields']['moduleDropdown_8'] && $dataArr['custom_fields']['moduleDropdown_8']['value'])
<!--==================================================-->
<!-----Start Carousel Slider Section ------->
<!--===================================================-->
	@php
	$homeGalleryDataRow = $dataArr['custom_fields']['moduleDropdown_8']['value'][0]['gallerydata'];
	@endphp
	@if($homeGalleryDataRow && $homeGalleryDataRow->count()>0)
	<div class="carousel-slider-section style-fourteen">
		<div class="container-fluid">
			<div class="owl-carousel slider-carousel">
				@foreach($homeGalleryDataRow as $record)
				<div class="carousel-slider style-fiveteen  d-flex align-items-center" style="background: url({{ $record->media->getModuleVars()['media_folder'].$record->media['path'] }});background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;">
					{!! $record->descp !!}
				</div>
				@endforeach

			</div>
		</div>
	</div>
	@endif
@endif

@if (isset($dataArr['custom_fields']['editor_9']) && isset($dataArr['custom_fields']['editor_9']['value']) && $dataArr['custom_fields']['editor_9']['value'] !='<p><br></p>')
<!--==================================================-->
<!-----Start Feature Section ----->
<!--===================================================-->
<div class="feature-section style-eleven upper">
	<div class="container">
		<div class="row upper11">			
		{!! $dataArr['custom_fields']['editor_9']['value'] !!}
		</div>
	</div>
</div>
@endif


@if (isset($dataArr['custom_fields']['editor_10']) && isset($dataArr['custom_fields']['editor_10']['value']) && $dataArr['custom_fields']['editor_10']['value'] !='<p><br></p>')
<!--==================================================-->
<!-----Start About Section Style Seven ----->
<!--===================================================-->
<div class="about-section style-fiveteen pt-60 pb-60">
	<div class="container">
		<div class="row">
		{!! $dataArr['custom_fields']['editor_10']['value'] !!}
		</div>
	</div>
</div>
@endif

@if (isset($dataArr['custom_fields']['editor_11']) && isset($dataArr['custom_fields']['editor_11']['value']) && $dataArr['custom_fields']['editor_11']['value'] !='<p><br></p>')
<!--==================================================-->
<!--Start service Section-->
<!--===================================================-->
<div class="service-section style-fiveteen pt-100 pb-150">
{!! $dataArr['custom_fields']['editor_11']['value'] !!}
</div>
@endif


@if (isset($dataArr['custom_fields']['editor_12']) && isset($dataArr['custom_fields']['editor_12']['value']) && $dataArr['custom_fields']['editor_12']['value'] !='<p><br></p>')
<!--==================================================-->
<!--Start choose us Section-->
<!--===================================================-->
<div class="choose-area style-sixteen pt-120 pb-90">
{!! $dataArr['custom_fields']['editor_12']['value'] !!}	
</div>
@endif

@if (isset($dataArr['custom_fields']['editor_13']) && isset($dataArr['custom_fields']['editor_13']['value']) && $dataArr['custom_fields']['editor_13']['value'] !='<p><br></p>')
<div class="py-4 wow bounceInLeft">
	<div class="container">
		<div class="row">
			{!! $dataArr['custom_fields']['editor_13']['value'] !!}	
		</div>
	</div>
</div>
@endif

@if (isset($dataArr['custom_fields']['editor_14']) && isset($dataArr['custom_fields']['editor_14']['value']) && $dataArr['custom_fields']['editor_14']['value'] !='<p><br></p>')
<!--==================================================-->
<!--Start process area-->
<!--===================================================-->
<div class="process-area upper2 pt-60 pb-60 wow zoomInRight">
	<div class="container">
		{!! $dataArr['custom_fields']['editor_14']['value'] !!}		
	</div>
</div>
@endif

@if (isset($dataArr['custom_fields']['editor_15']) && isset($dataArr['custom_fields']['editor_15']['value']) && $dataArr['custom_fields']['editor_15']['value'] !='<p><br></p>')
<!--==================================================-->
<!---- START Case study Section ----->
<!--===================================================-->
<div class="section-head style-10  pt-75 pb-220 mb-15">
	<div class="container">
		<div class="row">
			{!! $dataArr['custom_fields']['editor_15']['value'] !!}
		</div>
	</div>
</div>
@endif

@if (isset($dataArr['custom_fields']['editor_16']) && isset($dataArr['custom_fields']['editor_16']['value']) && $dataArr['custom_fields']['editor_16']['value'] !='<p><br></p>')
<!--Start Case Study section Body -->
<div class="case-study-section upper10">
	<div class="container-fluid">
		<div class="row">
			{!! $dataArr['custom_fields']['editor_16']['value'] !!}			
		</div>
	</div>
</div>
@endif

@if (isset($dataArr['custom_fields']['editor_17']) && isset($dataArr['custom_fields']['editor_17']['value']) && $dataArr['custom_fields']['editor_17']['value'] !='<p><br></p>')
<!--==================================================-->
<!----START Experience Section ----->
<!--===================================================-->
<div class="experience-section style-10 pt-75 pb-70">
	<div class="container">
		<div class="row align-items-center">
			{!! $dataArr['custom_fields']['editor_17']['value'] !!}				
		</div>
	</div>
</div>
@endif


<!--==================================================-->
<!----START Testimonial Section ----->
<!--===================================================-->
<div class="testimonial-section style-5 upper pt-30 pb-30 wow zoomInLeft">
	<div class="container">
		@if (isset($dataArr['custom_fields']['text_18']))
		<div class="section-head text-center pb-15">
			<h2>{!! $dataArr['custom_fields']['text_18']['value'] !!}</h2>
			<span class="section-head-bar-2"></span>
		</div>
		@endif

		@if(!empty($testimonials) && $testimonials)
		<div class="row">
			<div class="owl-carousel testimonial-carousel-4">
				@foreach($testimonials as $testimonial)
				<div class="testimonial-single-item">
					<div class="testimonial-content">
						<p class="testimonial-content-text">{!! $testimonial->descp !!}</p>
						<div class="testi-icon">
							<ul>
								<li><i class="fas fa-star"></i></li>
								<li><i class="fas fa-star"></i></li>
								<li><i class="fas fa-star"></i></li>
								<li><i class="fas fa-star"></i></li>
								<li><i class="fas fa-star"></i></li>
							</ul>
						</div>
						<h4>{!! $testimonial->name !!}</h4>
					</div>
				</div>
				@endforeach
			</div>
		</div>
		@endif

	</div>
</div>

@if(isset($dataArr['custom_fields']['moduleDropdown_19']) && $dataArr['custom_fields']['moduleDropdown_19'] && $dataArr['custom_fields']['moduleDropdown_19']['value'])
<div class="brand-section pb-30">
	<div class="container">
		<div class="row hr">
			@php
			$galleryDataRow = $dataArr['custom_fields']['moduleDropdown_19']['value'][0]['gallerydata'];
			@endphp

			@if($galleryDataRow && $galleryDataRow->count()>0)
			<div class="brand-carousel owl-carousel">
				@foreach($galleryDataRow as $record)
				<div class="single-brand">
					<x-img src="{{ $record->media->getModuleVars()['media_folder'].$record->media['path'] }}" alt="{{ $record->media['alt'] }}" />
				</div>
				@endforeach
			</div>
			@endif
		</div>
	</div>
</div>
@endif

@stop

@push('scripts')
@endpush