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

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

@endsection @section('content') @include("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', $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 @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() ])

{{ 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' => '', ])

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

@include('helpers.form_control', ['type' => 'text', 'name' => 'email', 'value' => $customer->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