@extends('settings.layouts.app') @section('content')

Edit {{ $user->login }}

{{--
BACK
--}} @if (count($errors) > 0)
Whoops! There were some problems with your input.

    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{!! Form::model($user, ['method' => 'PATCH','route' => ['access.user.update', $user->id], 'class' => 'pure-form pure-form-aligned']) !!}
{!! Form::text('login', null, array('placeholder' => 'Name','class' => 'form-control')) !!} *
{!! Form::text('email', null, array('readonly', 'placeholder' => 'Email','class' => 'form-control')) !!} *
@if (!Auth::user()->hasRole("administrator"))
{!! Form::label('current_password', 'Current Password:') !!} {!! Form::password ('current_password', null, array('placeholder' => 'current password', 'id' => 'old_password', 'class' => 'form-control')) !!} {{-- * --}}
@endif
{!! Form::password('password', array('placeholder' => 'new password','class' => 'form-control')) !!}
{!! Form::password('password_confirmation', array('placeholder' => 'confirm password','class' => 'form-control')) !!}
@if (Auth::user()->hasRole("administrator"))
Assign Roles
@foreach ($roles as $role) @endforeach
@endif
{!! Form::close() !!}
@endsection