{{ trans('messages.basic_information') }}
@if (get_localization_config('show_last_name_first', $customer->getLanguageCode()))
@include('helpers.form_control', ['type' => 'text', 'name' => 'last_name', 'value' => $user->last_name, 'rules' => $user->rules()])
@include('helpers.form_control', ['type' => 'text', 'name' => 'first_name', 'value' => $user->first_name, 'rules' => $user->rules()])
@else
@include('helpers.form_control', ['type' => 'text', 'name' => 'first_name', 'value' => $user->first_name, 'rules' => $user->rules()])
@include('helpers.form_control', ['type' => 'text', 'name' => 'last_name', 'value' => $user->last_name, 'rules' => $user->rules()])
@endif
@if (config('custom.japan'))
@else
@include('helpers.form_control', [
'type' => 'select',
'name' => 'timezone',
'value' => $customer->timezone ?? config('app.timezone'),
'options' => Tool::getTimezoneSelectOptions(),
'include_blank' => trans('messages.choose'),
'rules' => $user->rules()
])
@endif
@if (config('custom.japan'))
@else
@include('helpers.form_control', [
'type' => 'select',
'name' => 'language_id',
'label' => trans('messages.language'),
'value' => $customer->language_id ?? \Acelle\Model\Language::getDefaultLanguage()->id,
'options' => Acelle\Model\Language::getSelectOptions(),
'include_blank' => trans('messages.choose'),
'rules' => $user->rules()
])
@endif
{{ trans('messages.account.personality') }}
@include('layouts.core._menu_layout_switch', [
'menu_layout' => $customer->menu_layout,
])
@include('layouts.core._theme_mode_control', [
'theme_mode' => $customer->theme_mode,
])
@include('layouts.core._theme_color_control', [
'theme_color' => $customer->getColorScheme(),
])
@include('helpers.form_control', [
'type' => 'select',
'class' => '',
'name' => 'text_direction',
'value' => $customer->text_direction,
'help_class' => 'customer',
'options' => [
['text' => trans('messages.text_direction.ltr'), 'value' => 'ltr'],
['text' => trans('messages.text_direction.rtl'), 'value' => 'rtl']
],
'rules' => '',
])