@extends('layouts.app') @section('title_full', __('Edit User').' - '.$user->getFullName()) @section('body_attrs')@parent data-user_id="{{ $user->id }}"@endsection @section('sidebar') @include('partials/sidebar_menu_toggle') @include('users/sidebar_menu') @endsection @section('content')
{{ __('Profile') }}
@include('partials/flash_messages')
{{ csrf_field() }} @if ($user->invite_state == App\User::INVITE_STATE_SENT || $user->invite_state == App\User::INVITE_STATE_NOT_INVITED)
@endif @if (auth()->user()->isAdmin())
@include('partials/field_error', ['field'=>'role'])
@endif @if (auth()->user()->isAdmin() && $user->invite_state == App\User::INVITE_STATE_ACTIVATED)
@include('partials/field_error', ['field'=>'disabled'])
@endif @action('user.edit.before_first_name', $user)
@include('partials/field_error', ['field'=>'first_name'])
@include('partials/field_error', ['field'=>'last_name'])
@action('user.edit.before_email', $user)
@include('partials/field_error', ['field'=>'email'])
@include('partials/field_error', ['field'=>'emails'])
@if ($user->id == Auth::user()->id)
@endif
@include('partials/field_error', ['field'=>'job_title'])
@action('user.edit.phone_append', $user) @include('partials/field_error', ['field'=>'phone'])
@include('partials/field_error', ['field'=>'locale'])
@include('partials/field_error', ['field'=>'timezone'])
@include('partials/field_error', ['field'=>'time_format'])
@action('user.edit.before_photo', $user)
@if ($user->photo_url) @endif

{{ __('Image will be re-sized to :dimensions. JPG, GIF, PNG accepted.', ['dimensions' => config('app.user_photo_size').'x'.config('app.user_photo_size')]) }}

@include('partials/field_error', ['field'=>'photo_url'])
@if (Auth::user()->isAdmin()) @if ($user->invite_state == App\User::INVITE_STATE_ACTIVATED) @if ($user->id != Auth::user()->id) {{ __('Reset password') }} @endif @elseif ($user->invite_state == App\User::INVITE_STATE_SENT) {{ __('Re-send invite email') }} @elseif ($user->invite_state == App\User::INVITE_STATE_NOT_INVITED) {{ __('Send invite email') }} @endif @endif @if (Auth::user()->can('delete', $user)) {{ __('Delete user') }} @endif
@endsection @section('javascript') @parent userProfileInit(); @endsection