@extends('layouts.master_backend') @section('content') @php $countTestimonials = count($testimonials_rows); $countCTA = ($data_row->cta_section_json!=null) ? 1 : 0; $ctaDecodeJson = json_decode($data_row->cta_section_json); $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); @endphp
{{Form::model($data_row,['route'=>'update-home-page','id'=>'home-page-form','files'=>true])}}

Banner

{{ Form::text('banner_section_tagline',null,['class'=>'form-control', 'placeholder'=>'Enter Tagline']) }}
{{ Form::text('banner_section_heading',null,['class'=>'form-control', 'placeholder'=>'Enter Heading']) }}
@if($banner_images) @foreach($banner_images as $k=>$img) {{ Form::checkbox('selected_banner_ids[]',$img->id,false,['id'=>'img_'.$img->id, 'class'=>'img_checkbox', 'style'=>'display:none']) }} @endforeach
S.No. Image Action
{{$k+1}}. {{-- --}}
@endif

Features

@if($countFeatures==1) @foreach($featuresDecodeJson as $key=>$features_data)
{{ Form::select('intro_sect_features[icon][]',config('constants.THEME_ICONS'),$features_data->icon,['class'=>'form-control', 'placeholder'=>'--Select--']) }}
{{ Form::text('intro_sect_features[title][]',$features_data->title,['class'=>'form-control', 'placeholder'=>'Enter Title']) }}
{{ Form::textarea('intro_sect_features[short_desc][]',$features_data->short_desc,['class'=>'form-control', 'placeholder'=>'Enter Short Description','rows'=>2]) }}

@endforeach @endif

Client Testimonials

{{ Form::text('testimonial_section_tagline',null,['class'=>'form-control', 'placeholder'=>'Enter Tagline']) }}
{{ Form::text('testimonial_section_heading',null,['class'=>'form-control', 'placeholder'=>'Enter Heading']) }}
@if($countTestimonials>0) @foreach($testimonials_rows as $testimonial)
{{ Form::hidden('testimonial_section[ids][]',$testimonial->id) }} {{ Form::hidden('testimonial_section[prv_img][]',$testimonial->client_image) }}
{{ Form::text('testimonial_section[client_name][]',$testimonial->client_name,['class'=>'form-control', 'placeholder'=>'Enter Client Name']) }}
{{ Form::text('testimonial_section[client_position][]',$testimonial->client_position,['class'=>'form-control', 'placeholder'=>'Enter Client Position']) }}
{{ Form::textarea('testimonial_section[client_comment][]',$testimonial->client_comment,['class'=>'form-control', 'placeholder'=>'Enter Client Comment','rows'=>2]) }}

@endforeach @endif

Counter

@if($countCounter==1) @foreach($counterDecodeJson as $key=>$counter_data)
{{ Form::text('counter_section[title][]',$counter_data->title,['class'=>'form-control', 'placeholder'=>'Enter Title']) }}
{{ Form::text('counter_section[number][]',$counter_data->number,['class'=>'form-control', 'placeholder'=>'Enter Value']) }}
{{ Form::text('counter_section[prefix][]',$counter_data->prefix,['class'=>'form-control', 'placeholder'=>'Enter Prefix']) }}

@endforeach @endif

{{--

Footer CTA

{{ Form::text('footer_cta_section_tagline',null,['class'=>'form-control', 'placeholder'=>'Enter Tagline']) }}
{{ Form::text('footer_cta_section_heading',null,['class'=>'form-control', 'placeholder'=>'Enter Heading']) }}
--}}

Room Section

{{ Form::text('room_section_tagline',null,['class'=>'form-control', 'placeholder'=>'Enter Tagline']) }}
{{ Form::text('room_section_heading',null,['class'=>'form-control', 'placeholder'=>'Enter Heading']) }}

Room Category Section

{{ Form::text('room_category_section_tagline',null,['class'=>'form-control', 'placeholder'=>'Enter Tagline']) }}
{{ Form::text('room_category_section_heading',null,['class'=>'form-control', 'placeholder'=>'Enter Heading']) }}
{{ Form::close() }}
{{ Form::select('intro_sect_features[icon][]',config('constants.THEME_ICONS'),null,['class'=>'form-control', 'placeholder'=>'--Select--']) }}
{{ Form::text('intro_sect_features[title][]',null,['class'=>'form-control', 'placeholder'=>'Enter Title']) }}
{{ Form::textarea('intro_sect_features[short_desc][]',null,['class'=>'form-control', 'placeholder'=>'Enter Short Description','rows'=>2]) }}

{{ Form::text('counter_section[title][]',null,['class'=>'form-control', 'placeholder'=>'Enter Title']) }}
{{ Form::text('counter_section[number][]',null,['class'=>'form-control', 'placeholder'=>'Enter Value']) }}
{{ Form::text('counter_section[prefix][]',null,['class'=>'form-control', 'placeholder'=>'Enter Prefix']) }}

{{ Form::hidden('testimonial_section[ids][]',0) }} {{ Form::hidden('testimonial_section[prv_img][]','') }}
{{ Form::text('testimonial_section[client_name][]',null,['class'=>'form-control', 'placeholder'=>'Enter Client Name']) }}
{{ Form::text('testimonial_section[client_position][]',null,['class'=>'form-control', 'placeholder'=>'Enter Client Position']) }}
{{ Form::textarea('testimonial_section[client_comment][]',null,['class'=>'form-control', 'placeholder'=>'Enter Client Comment','rows'=>2]) }}

{{ Form::hidden('cta_section[ids][]',0) }}
{{ Form::text('cta_section[tagline][]',null,['class'=>'form-control', 'placeholder'=>'Enter Tagline']) }}
{{ Form::text('cta_section[heading][]',null,['class'=>'form-control', 'placeholder'=>'Enter Heading']) }}
{{ Form::textarea('cta_section[shortdesc][]',null,['class'=>'form-control', 'placeholder'=>'Enter Short Description','rows'=>2]) }}
{{ Form::text('cta_section[mobile][]',null,['class'=>'form-control', 'placeholder'=>'Enter Mobile Number']) }}
{{ Form::select('cta_section[icon][]',config('constants.THEME_ICONS'),null,['class'=>'form-control', 'placeholder'=>'--Select--']) }}

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