@include('backend.inc.infopanel') @php if (Auth::user() && Auth::user()->hasAnyRole(['admin', 'root'])) { $isReadonly = false; $isAdmin = true; }else{ $isReadonly = true; $isAdmin = false; } if ($user && $user->getKey() && $user->id == \Illuminate\Support\Facades\Auth::id()) $isReadonly = false; @endphp

User Type: *

@foreach($roles as $role)
{{$role->description}}
@endforeach
{!! Form::label('first_name', 'First Name*') !!} {!! Form::text('first_name', $profile->first_name, ['class' => 'b-field__input -content', 'placeholder' => 'First Name', 'readonly' => $isReadonly]) !!}
{!! Form::label('last_name', 'Last Name*') !!} {!! Form::text('last_name', $profile->last_name, ['class' => 'b-field__input -content', 'placeholder' => 'Last Name', 'readonly' => $isReadonly]) !!}
{!! Form::label('email', 'Email*') !!} {!! Form::email('email', $user->email, ['class' => 'b-field__input -content', 'placeholder' => 'Email', 'readonly' => $isReadonly]) !!}
{!! Form::label('password', 'Password*') !!} {!! Form::password('password', ['class' => 'b-field__input -content', 'autocomplete' => 'new-password', 'placeholder' => 'Password', 'readonly' => $isReadonly]) !!}
{!! Form::label('password_confirm', 'Confirm Password*') !!} {!! Form::password('password_confirm', ['class' => 'b-field__input -content', 'autocomplete' => 'new-password', 'placeholder' => 'Confirm Password', 'readonly' => $isReadonly]) !!}