@if (Auth::user()->image) {{ trans('app.avatar') }} @else {{ trans('app.avatar') }} @endif @if (Auth::user()->image) {{ trans('app.form.delete_avatar') }} @endif
{!! Form::open(['route' => 'admin.account.updatePhoto', 'files' => true, 'data-toggle' => 'validator']) !!}
{!! Form::close() !!}

@if (Auth::user()->isSuperAdmin()) {{ trans('app.super_admin') }} @else {{ Auth::user()->role->name }} @endif
{{ trans('app.member_since') . ' ' . Auth::user()->created_at->diffForHumans() }}

{!! Form::model($profile, ['method' => 'PUT', 'route' => ['admin.account.update'], 'files' => true, 'id' => 'form', 'data-toggle' => 'validator']) !!}
{!! Form::label('name', trans('app.form.full_name') . '*') !!} {!! Form::text('name', null, ['class' => 'form-control', 'placeholder' => trans('app.placeholder.full_name'), 'required']) !!}
{!! Form::label('nice_name', trans('app.form.nice_name')) !!} {!! Form::text('nice_name', null, ['class' => 'form-control', 'placeholder' => trans('app.placeholder.nice_name')]) !!}
{!! Form::label('role', trans('app.form.role')) !!} {!! Form::text('role', $profile->role->name, ['class' => 'form-control', 'disabled' => 'disabled']) !!}
{!! Form::label('email', trans('app.form.email_address') . '*') !!} {!! Form::email('email', null, ['class' => 'form-control', 'placeholder' => trans('app.placeholder.valid_email'), 'required']) !!}
{!! Form::label('dob', trans('app.form.dob')) !!}
{!! Form::text('dob', null, ['class' => 'form-control datepicker', 'placeholder' => trans('app.placeholder.dob')]) !!}
{!! Form::label('sex', trans('app.form.sex')) !!} {!! Form::select('sex', ['app.male' => trans('app.male'), 'app.female' => trans('app.female'), 'app.other' => trans('app.other')], null, ['class' => 'form-control select2-normal', 'placeholder' => trans('app.placeholder.sex')]) !!}
{!! Form::label('description', trans('app.form.biography')) !!} {!! Form::textarea('description', null, ['class' => 'form-control summernote-without-toolbar', 'rows' => '2', 'placeholder' => trans('app.placeholder.biography')]) !!}
{!! Form::submit(trans('app.update'), ['class' => 'btn btn-flat btn-new']) !!} {!! Form::close() !!}
@if ($profile->primaryAddress) {!! $profile->primaryAddress->toHtml() !!} {{ trans('app.update_address') }} @else {{ trans('app.add_address') }} @endif
@if ($profile->isFromMerchant())
@if (isset($profile->shop->pay_to)) {{ trans('app.update_account') }} @else {{ trans('app.add_account') }} @endif
@endif @if ($profile->isFromMerchant())

{{ optional($profile->shop)->name }}

{{ trans('app.logo') }}

  • {{ trans('app.id_verified') }}
  • {{ trans('app.phone_verified') }}
  • {{ trans('app.address_verified') }}
@can('update', $profile->shop->config) {{ trans('app.get_verified') }} @endcan
@endif