@extends('layouts.master_frontend') @section('content') @php $countTestimonials = count($testimonials_rows); $countCounter = ($data_row->counter_section_json!=null) ? 1 : 0; $counterDecodeJson = json_decode($data_row->counter_section_json); $countFeatures = ($data_row->intro_section_features!=null) ? 1 : 0; $featuresDecodeJson = json_decode($data_row->intro_section_features); $banners = ['banner.jpg','banner_1.jpg','banner_2.jpg','pgk1.jpg','pgk2.jpg','pgk3.jpg']; if($data_row->banners){ $banners = []; foreach ($data_row->banners as $key => $value) { $banners[] = $value->file; } } $startDate = dateConvert(null, 'd/m/Y'); $endDate = dateConvert(getNextPrevDate('next', 1), 'd/m/Y'); @endphp

{{$data_row->banner_section_heading}}

{{$data_row->banner_section_tagline}}

{{ Form::open(array('url'=>route('search-rooms'), 'method'=>'GET', 'id'=>"room-search-form", 'class'=>"st-search-form-tour icon-frm withlbl")) }} {{ Form::close() }}
@if($data_row->intro_section_publish)
@if($countFeatures) @foreach($featuresDecodeJson as $k=>$val)

{{limit_text($val->title, 35)}}

{{limit_text($val->short_desc,35)}}

@endforeach @endif
@endif @if($data_row->room_section_publish)

{{$data_row->room_section_heading}}

{{$data_row->room_section_tagline}}

@if(count($room_list)) @foreach($room_list as $k=>$room) @php $roomImg = ($room->attachments && count($room->attachments)) ? $room->attachments[0]['file'] : null; $totaAmenities = []; if($room->room_type && $room->room_type->amenities){ $totaAmenities = explode(',', $room->room_type->amenities); } @endphp

{{$room->room_name}}

{{count($totaAmenities)}} Amenities
{{$settings['currency_symbol']}} {{numberFormat($room->room_type->base_price)}}
@endforeach @endif
@endif @if($data_row->room_category_section_publish)

{{$data_row->room_category_section_heading}}

{{$data_row->room_category_section_tagline}}

@endif @if($data_row->counter_section_publish)
@if($countCounter) @foreach($counterDecodeJson as $k=>$val)

{{$val->number}}{{$val->prefix}}

{{limit_text($val->title, 20)}}

@endforeach @endif
@endif @if($data_row->testimonial_section_publish)

{{$data_row->testimonial_section_heading}}

{{$data_row->testimonial_section_tagline}}

@if($countTestimonials>0) @foreach($testimonials_rows as $testimonial)
{{$testimonial->client_name}}
{{$testimonial->client_position}}

{{limit_text($testimonial->client_comment, 135)}}

@endforeach @endif
@endif {{-- require set var in js var --}} @endsection