@extends('layouts.backend') @section('title', trans('messages.my_profile')) @section('page_script') @endsection @section('page_header')

{{ $admin->displayName() }}

@endsection @section('content') @include("admin.account._menu")
{{ csrf_field() }}

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

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

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

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

@include('helpers.form_control', ['type' => 'text', 'name' => 'first_name', 'value' => $admin->first_name, 'rules' => $admin->rules()])
@include('helpers.form_control', ['type' => 'text', 'name' => 'last_name', 'value' => $admin->last_name, 'rules' => $admin->rules()])
@include('helpers.form_control', ['type' => 'select', 'name' => 'timezone', 'value' => $admin->timezone, 'options' => Tool::getTimezoneSelectOptions(), 'include_blank' => trans('messages.choose'), 'rules' => $admin->rules()]) @include('helpers.form_control', ['type' => 'select', 'name' => 'language_id', 'label' => trans('messages.language'), 'value' => $admin->language_id, 'options' => Acelle\Model\Language::getSelectOptions(), 'include_blank' => trans('messages.choose'), 'rules' => $admin->rules()])
@include('helpers.form_control', [ 'type' => 'select', 'class' => '', 'name' => 'color_scheme', 'value' => $admin->color_scheme, 'help_class' => 'admin', 'options' => Acelle\Model\Admin::colors("color_scheme"), 'rules' => '', ])
@include('helpers.form_control', [ 'type' => 'select', 'class' => '', 'name' => 'text_direction', 'value' => $admin->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' => $admin->user->email, 'help_class' => 'profile', 'rules' => $admin->rules()]) @include('helpers.form_control', ['type' => 'password', 'label'=> trans('messages.new_password'), 'name' => 'password', 'rules' => $admin->rules()]) @include('helpers.form_control', ['type' => 'password', 'name' => 'password_confirmation', 'rules' => $admin->rules()])

@endsection