{{ Form::model($landing_page, ['method' => 'POST','route' => ['landing_page_settings_updates'],'enctype'=>'multipart/form-data','data-toggle'=>'validator','id'=>'frontend_setting']) }} {{ Form::hidden('id', null, array('placeholder' => 'id','class' => 'form-control')) }} {{ Form::hidden('type', $tabpage, array('placeholder' => 'id','class' => 'form-control')) }}
status == 1 ? 'checked' : ''}}>
{{ Form::label('title',trans('messages.title').' *',['class'=>'form-control-label'], false ) }} {{ Form::text('title',old('title'),['id'=>'title','placeholder' => trans('messages.title'),'class' =>'form-control']) }}
{{ Form::label('url',trans('messages.url').' *',['class'=>'form-control-label'], false ) }} {{ Form::text('url',old('url'),['id'=>'url','placeholder' => trans('messages.url'),'class' =>'form-control']) }}
vimage @if($landing_page && getMediaFileExit($landing_page, 'vimage')) @endif
{{ Form::file('vimage', ['class'=>"custom-file-input custom-file-input-sm detail" , 'id'=>"vimage" , 'lang'=>"en" , 'accept'=>"image/*", 'onchange'=>"preview()"]) }} @if($landing_page && getMediaFileExit($landing_page, 'vimage')) @else @endif
{{ Form::label('description',__('messages.description'), ['class' => 'form-control-label']) }} {{ Form::textarea('description', null, ['class'=>"form-control textarea" , 'rows'=>2 , 'placeholder'=> __('messages.description') ]) }}
@if($landing_page && $landing_page->value != null) @php $landingPageValue = json_decode($landing_page->value, true); @endphp @foreach($landingPageValue['subtitle'] as $index => $subtitle)
@if(isset($landingPageValue['subtitle'][$index]) || ($landingPageValue['subdescription'][$index]))
{{ Form::label('subtitle',__('messages.subtitle'), ['class' => 'form-control-label']) }} {{ Form::text("subtitle[$index]", is_array($subtitle) ? $subtitle[0] : $subtitle, ['id' => 'subtitle_'.$index, 'placeholder' => trans('messages.subtitle'), 'class' => 'form-control' , 'required' => true]) }}
{{ Form::label('subdescription',__('messages.subdescription'), ['class' => 'form-control-label']) }} {{ Form::textarea("subdescription[$index]", is_array($landingPageValue['subdescription'][$index]) ? $landingPageValue['subdescription'][$index][0] : $landingPageValue['subdescription'][$index], ['id' => 'subdescription_'.$index, 'placeholder' => trans('messages.subdescription'), 'class' => 'form-control textarea', 'rows'=>2,'required' => true]) }}
@endif
@endforeach @endif
{{ Form::submit(__('messages.save'), ['class'=>"btn btn-md btn-primary float-md-right submit_section1"]) }} {{ Form::close() }}