{{ html()->form('POST', route('landing_page_settings_updates'))->attribute('enctype', 'multipart/form-data')->attribute('data-toggle', 'validator')->id('frontend_setting')->open() }} {{ html()->hidden('id',$landing_page->id)->class('form-control')->placeholder('id') }} {{ html()->hidden('type', $tabpage)->class('form-control')->placeholder('id') }}
status == 1 ? 'checked' : ''}}>
{{ html()->label(trans('messages.title') . ' *', 'title')->class('form-control-label') }} {{ html()->text('title',old('title'))->id('title')->class('form-control')->placeholder(trans('messages.title')) }}
{{ html()->label(trans('messages.url') . ' *', 'url')->class('form-control-label') }} {{ html()->text('url',old('url'))->id('url')->class('form-control')->placeholder(trans('messages.url')) }}
vimage @if($landing_page && getMediaFileExit($landing_page, 'vimage')) @endif
{{ html()->file('vimage')->class("custom-file-input custom-file-input-sm detail")->id("vimage")->attribute('lang', 'en')->attribute('accept', 'image/*')->attribute('onchange', 'preview()') }} @if($landing_page && getMediaFileExit($landing_page, 'vimage')) @else @endif
{{ html()->label(__('messages.description'), 'description')->class('form-control-label') }} {{ html()->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]))
{{ html()->label(__('messages.subtitle'), 'subtitle')->class('form-control-label') }} {{ html()->text("subtitle[$index]", is_array($subtitle) ? $subtitle[0] : $subtitle)->id("subtitle_$index")->class('form-control')->placeholder(trans('messages.subtitle'))->required() }}
{{ html()->label(__('messages.subdescription'), 'subdescription')->class('form-control-label') }} {{ html()->textarea("subdescription[$index]", is_array($landingPageValue['subdescription'][$index]) ? $landingPageValue['subdescription'][$index][0] : $landingPageValue['subdescription'][$index])->id('subdescription_'.$index)->class('form-control textarea')->rows(2)->placeholder(trans('messages.subdescription'))->required() }}
@endif
@endforeach @endif
{{ html()->submit(__('messages.save'))->class("btn btn-md btn-primary float-md-end submit_section1") }} {{ html()->form()->close() }}