{{ 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' : '' }}>
@include('partials._language_toggale') @foreach ($language_array as $language)
@php $title_key = 'title'; $description_key = 'description'; $title_value = $language['id'] == 'en' ? $landing_page->$title_key ?? '' : $landing_page->translate($title_key, $language['id']) ?? ''; $description_value = $language['id'] == 'en' ? $landing_page->$description_key ?? '' : $landing_page->translate($description_key, $language['id']) ?? ''; $title_name = $language['id'] == 'en' ? $title_key : "translations[{$language['id']}][$title_key]"; $description_name = $language['id'] == 'en' ? $description_key : "translations[{$language['id']}][$description_key]"; @endphp
{{ html()->label(trans('messages.title') . ' *', 'title')->class('form-control-label') }} {{ html()->text($title_name, old($title_name, $title_value))->id('title_' . $language['id'])->placeholder(trans('messages.title'))->class('form-control') }}
{{ html()->label(__('messages.description'), 'description')->class('form-control-label') }} {{ html()->textarea($description_name, old($description_name, $description_value))->id('description_' . $language['id'])->placeholder(trans('messages.description'))->class('form-control textarea')->rows(2) }}
@endforeach
{{ html()->label(__('messages.email'), 'email')->class('form-control-label') }} {{ html()->email('email', old('email'))->class('form-control')->placeholder(__('messages.email'))->attribute('pattern', '[^@]+@[^@]+\.[a-zA-Z]{2,}')->attribute('title', 'Please enter a valid email address') }}
{{ html()->label(__('messages.contact_number'), 'contact_number')->class('form-control-label') }} {{ html()->text('contact_number', old('contact_number'))->class('form-control contact_number')->placeholder(__('messages.contact_number')) }}
@if ($landing_page && getMediaFileExit($landing_page, 'section5_attachment')) @else @endif
@if ($landing_page && getMediaFileExit($landing_page, 'section5_attachment')) @php $attchments = $landing_page->getMedia('section5_attachment'); $file_extention = config('constant.IMAGE_EXTENTIONS'); @endphp

{{ __('messages.attached_files') }}

@foreach ($attchments as $attchment)