@php $disabled = isset($disabled) ? 'disabled' : '' @endphp @php $departments = isset($departments) ? $departments : [] @endphp @php $first_name = isset($first_name) ? $first_name : null @endphp @php $last_name = isset($last_name) ? $last_name : null @endphp @php $email = isset($email) ? $email : null @endphp @php $department = isset($department) ? $department : null @endphp @php $postUrl = isset($postUrl) ? $postUrl : route("homepage")."#". url('user') @endphp {!! Form::open(['method' => 'POST', 'class' => 'form-horizontal', 'url' => $postUrl ]) !!}
{!! Form::text('first_name',$first_name, ['class'=>'form-control', 'placeholder'=>'First Name', 'id'=>'first_name' , 'required' => 'required', $disabled ]) !!}
{!! Form::text('last_name', $last_name, ['class'=>'form-control', 'placeholder'=>'Last Name', 'id'=>'last_name' , 'required' => 'required', $disabled]) !!}
{!! Form::email('email', $email, ['class'=>'form-control', 'placeholder'=>'Email', 'id'=>'email', $disabled]) !!}
{!! Form::password('password', array('class'=>'input-block-level form-control', 'placeholder'=>'Password', $disabled)) !!}
{!! Form::password('password_confirmation', array('class'=>'input-block-level form-control','placeholder'=>'Confirm Password', $disabled)) !!}

@lang("content.department")
{!! Form::select('structure_department_id', $departments, $department, ['id' => 'structure_department_id', 'class' => 'form-control singleselect', 'required' => 'required', $disabled]) !!}
@if (isset($position))
@lang("content.position")
{!! Form::select('structure_position_id', $positions, $position, ['class' => 'form-control singleselect', $disabled]) !!}
@endif

@if (!$disabled)
Back {!! Form::submit($submitLabel, array('class'=>'btn btn-primary', $disabled))!!}
@endif
{!! Form::close() !!}