@section('page_name') System '{{ $user->getFullname() }}' @stop @section('breadcrumbs') System Manage Users {{ $user->getFullname() }} @stop @section('scripts') {{ HTML::script('js/sha512.js') }} @stop @section('content')
{{ Form::model($user, array('files' => 'true', 'route' => array('users.update', $user->id), 'method' => 'PUT', 'id' => 'userForm', 'files' => true)) }}
User information

{{ $user->getFullname() }}

@if($user->getCompanyRole != null) {{ $user->getCompanyRole->type }} @endif



@if (Auth::user()->hasPermission('edit_user_group')) @endif
New photo {{ Form::file('photo') }}
First name {{ Form::text('firstname') }}
Last name {{ Form::text('lastname') }}
Username {{ Form::text('username') }}
3 letter initials {{ Form::text('initials') }}
New password {{ Form::password('newpassword', array('placeholder' => 'New password')) }}
Repeat password {{ Form::password('newpassword_confirm', array('placeholder' => 'New password (confirm)')) }} {{ Form::hidden('hashedPassword') }}
User Group {{ Form::select('userGroup', UserGroup::all()->lists('name', 'id')) }}
User disabled {{ Form::hidden('disabled', 0) }} {{ Form::checkbox('disabled', 1) }}
Company information
Email {{ Form::text('companyEmail') }}
Mobile {{ Form::text('companyMobile') }}
Extension {{ Form::text('extension') }}
Hire date {{ Form::text('hireDate', date('d-m-Y', strtotime($user->hireDate)), array('class' => 'dp', 'readonly' => 'readonly')) }}
Company Role {{ Form::select('companyRole', CompanyRole::lists('type', 'id')) }}
Job Statusses

Here you can select the job statusses that this user will see in 'My Jobs'.

@foreach(JobStatus::all() as $status) {{ Form::checkbox('myJobStatusses[' . $status->id . ']', '1', in_array($status->id, explode(',', $user->myJobStatusses))) }} {{ $status->type }}
@endforeach
Personal information
Address {{ Form::text('address') }}
City {{ Form::text('city') }}
Region {{ Form::text('region') }}
Post Code {{ Form::text('postcode') }}
Email {{ Form::text('personalEmail') }}
Phone {{ Form::text('homePhone') }}
Mobile {{ Form::text('homeMobile') }}
Date of Birth {{ Form::text('dob', date('d-m-Y', strtotime($user->dob)), array('class' => 'dp')) }}
DNI {{ Form::text('dni') }}
Notes {{ Form::textarea('notes', null, array('style' => 'height: 90px; width: 100%;')) }}
{{ Form::submit('Save', array('class' => 'btn btn-green fr')) }}
{{ Form::close() }}
@stop