{{trans('admin/general.settings.title')}}
{{ html()->form()->method('POST')->class("form modulForm")->id("modulForm")->autocomplete("off")->attribute('enctype','multipart/form-data')->open() }}
@foreach($list as $lang)
@foreach($lang["settings"] as $settings)
@php
$settingID=$settings["id"];
$formLabel=$settings["form_label"];
$formType=$settings["form_type"];
$formValue=$settings["value"];
$formValues=$settings["form_values"];
$formDescription=$settings["form_description"];
$langCode=$lang["lang_code"];
@endphp
@endforeach
@endforeach
{{html()->label()->for("lang_title")->html(trans("admin/general.settings.form.lang_title")) }}
:
{{html()->span()->id("lang_title")->text($lang["lang_title"])->style(['font-size'=>'12px'])}}
{{html()->label()->for("general_setting_".$settingID."_".$langCode)->html($formLabel) }}
@if($formType==="input")
{{html()
->input()
->name("general_setting[".$langCode."][".$settingID."]")
->value($formValue)
->id("general_setting_".$settingID."_".$langCode)
->class("form-control")
}}
@elseif($formType==="email")
{{html()
->email()
->name("general_setting[".$langCode."][".$settingID."]")
->value($formValue)
->id("general_setting_".$settingID."_".$langCode)
->class("form-control")
->required(true)
}}
@elseif($formType==="textarea")
{{html()
->textarea()
->name("general_setting[".$langCode."][".$settingID."]")
->value($formValue)
->id("general_setting_".$settingID."_".$langCode)
->style(['max-width'=>'100%','max-height'=>'150px','min-height'=>'150px'])
->class("form-control")}}
@elseif($formType==="select")
@php
$formValuesDecode=json_decode($formValues,true);
@endphp
{{html()
->select()
->options($formValuesDecode)
->name("general_setting[".$langCode."][".$settingID."]")
->value($formValue)
->id("general_setting_".$settingID."_".$langCode)
->class("form-control")}}
@endif
{{html()->span()->id("general_setting_desc".$settingID."_".$langCode)->html($formDescription)->style(['font-size'=>'12px']) }}
{{ html()->button()->type("submit")->class("btn btn-info btn-sm")->id("btnAction")->html(trans("admin/general.settings.form.action")) }}
{{ html()->form()->close() }}