@extends('layouts.core.backend', [ 'menu' => 'profile', ]) @section('title', trans('messages.my_profile')) @section('page_header')

person_outline {{ $admin->displayName() }}

@endsection @section('content') @include("admin.account._menu", [ 'menu' => 'profile', ])
{{ csrf_field() }}

{{ trans('messages.profile_photo') }}

{{ trans('messages.upload_your_photo') }}

{{ trans('messages.photo_at_least', ["size" => "300px x 300px"]) }}

{!! trans('messages.image.upload_help', [ 'max' => \Acelle\Library\Tool::maxFileUploadInBytes()]) !!}

file_download {{ trans('messages.upload') }} delete_outline {{ trans('messages.remove') }}

{{ trans('messages.basic_information') }}

@if (get_localization_config('show_last_name_first', $admin->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' => $admin->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' => $admin->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' => $admin->menu_layout, ])
@include('layouts.core._theme_mode_control', [ 'theme_mode' => $admin->theme_mode, ])
@include('layouts.core._theme_color_control', [ 'theme_color' => Auth::user()->admin->getColorScheme(), ])
@include('helpers.form_control', [ 'type' => 'select', 'class' => '', 'name' => 'text_direction', 'value' => $admin->text_direction, 'help_class' => 'admin', 'options' => [ ['text' => trans('messages.text_direction.ltr'), 'value' => 'ltr'], ['text' => trans('messages.text_direction.rtl'), 'value' => 'rtl'] ], 'rules' => '', ])

{{ trans('messages.account') }}

@include('helpers.form_control', ['type' => 'text', 'name' => 'email', 'value' => $user->email, 'help_class' => 'profile', 'rules' => $user->rules()]) @include('helpers.form_control', ['type' => 'password', 'label'=> trans('messages.new_password'), 'name' => 'password', 'rules' => $user->rules()]) @include('helpers.form_control', ['type' => 'password', 'name' => 'password_confirmation', 'rules' => $user->rules()])

@endsection