@extends('frontend.layouts.master') @section('title') {{ucwords(@$page_detail->name)}} @endsection @section('css') @endsection @section('content')
@foreach($sections as $key=>$value) @if($value == "basic_section")

{{@$basic_elements->heading ?? ''}}

{!! @$basic_elements->description !!}
@if(@$basic_elements->button_link) @endif
About
@endif @if($value == "call_to_action_1")
{{@$call1_elements->subheading ?? ''}}

{{preg_replace('/\W\w+\s*(\W*)$/', '$1', @$call1_elements->heading)."\n"}} {{$split[count($split)-1]}}

@endif @if($value == "call_to_action_2")
{{@$call2_elements->subheading ?? ''}}

{{ @$call2_elements->heading ?? '' }}

@endif @if($value == "background_image_section")

{{@$bgimage_elements->heading ?? ''}}

{{ @$bgimage_elements->description }}
Images
@endif @if($value == "flash_cards")
{{$flash_elements[0]->subheading ?? ''}}

{{@$flash_elements[0]->heading ?? ''}}

@foreach(@$flash_elements as $index=>$flash_element)

{{ucwords(@$flash_element->list_header)}}

{{ucfirst(@$flash_element->list_description) }}
@endforeach
@endif @if($value == "simple_header_and_description")
@if(@$header_descp_elements->heading!==null)
{{@$header_descp_elements->subheading ?? ''}}

{{preg_replace('/\W\w+\s*(\W*)$/', '$1', @$header_descp_elements->heading)."\n"}} {{$split[count($split)-1]}}

@endif
{!! @$header_descp_elements->description !!}
@endif @if($value == "map_and_description")
{{@$map_descp->subheading ?? ''}}

{{preg_replace('/\W\w+\s*(\W*)$/', '$1', @$map_descp->heading)."\n"}} {{$split[count($split)-1]}}

{!! @$map_descp->description !!}
@if(@$map_descp->button_link) @endif
@endif @if($value == "small_box_description") @if(count($process_elements)>0)
{{ ucfirst($process_elements[0]->subheading ?? '') }}

{{@$process_elements[0]->heading}}

@for ($i = 1; $i <=@$process_num; $i++)

{{ucwords(@$process_elements[$i-1]->list_header ??'')}}

{{ucfirst(@$process_elements[$i-1]->list_description)}}

@endfor
@endif @endif @if($value == "gallery_section")
@if(@$heading!==null)
{{@$subheading ?? ''}}

{{@$heading}}

@endif
@if(count(@$gallery_elements) > 0) @endif
@endif @if($value == "slider_list") @if(count($slider_list_elements)>0))
{{ucwords(@$slider_list_elements[0]->description)}}

{{preg_replace('/\W\w+\s*(\W*)$/', '$1', @$slider_list_elements[0]->heading)."\n"}} {{$split[count($split)-1]}}

@endif @endif @endforeach @endsection @section('js') @endsection