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

@lang('global.users.title')

{!! Form::model($user, ['method' => 'PUT', 'route' => ['admin.users.update', $user->id],'class'=>'formvalidation']) !!}
@lang('global.app_edit')
{!! Form::label('id', trans('global.users.fields.contact-reference').'', ['class' => 'control-label']) !!}  {!!trans('custom.messages.click-here', [ 'href' => route('admin.contacts.show', $user->id) ])!!} {!! Form::select('contact_reference_id', $contact_references, old('contact_reference_id', $user->id), ['class' => 'form-control select2', 'id' => 'id', 'disabled' => '']) !!}

@if($errors->has('id'))

{{ $errors->first('id') }}

@endif
{!! Form::label('name', trans('global.users.fields.name').'*', ['class' => 'control-label form-label']) !!}
{!! Form::text('name', old('name'), ['class' => 'form-control', 'placeholder' => '', 'required' => '', 'disabled' => '']) !!}

@if($errors->has('name'))

{{ $errors->first('name') }}

@endif
{!! Form::label('email', trans('global.users.fields.email').'*', ['class' => 'control-label form-label']) !!}
{!! Form::email('email', old('email'), ['class' => 'form-control', 'placeholder' => '', 'required' => '', 'disabled' => '']) !!}

@if($errors->has('email'))

{{ $errors->first('email') }}

@endif
{!! Form::label('password', trans('global.users.fields.password').'', ['class' => 'control-label form-label']) !!}{!! digi_get_help( trans( 'global.users.password_help_update' ) ) !!}
{!! Form::password('password', ['class' => 'form-control', 'placeholder' => '']) !!}

@if($errors->has('password'))

{{ $errors->first('password') }}

@endif
{!! Form::label('hourly_rate', trans('global.users.fields.hourly_rate').'', ['class' => 'control-label form-label']) !!}{!! digi_get_help( trans( 'global.users.hourly_rate_help') ) !!}
{!! Form::number('hourly_rate', old('hourly_rate'), ['class' => 'form-control', 'placeholder' => trans('global.users.fields.hourly_rate'), 'min'=>'0','step'=>'0.01','required' => '',]) !!}

@if($errors->has('hourly_rate'))

{{ $errors->first('hourly_rate') }}

@endif