@if($data->id > 0)
{{ Form::hidden('user_type', $data->user_type ?? '', array('class' => 'u_type'))}}
{{ Form::hidden('request_from', $data->register_from ?? '', array('class' => 'request_from'))}}
@else
{{Form::label('user_type', __('users.user_type'), array('class' => 'control-label'))}}
{{ Form::radio('user_type', 1,(!($data->user_type) || $data->user_type==1)? true:false, array('class' => 'u_type'))}} {{ __('users.user') }}
{{ Form::radio('user_type', 2,($data->user_type==2)? true:false, array('class' => 'u_type'))}} {{ __('users.company') }}
@endif
{{Form::label('id', __('users.name'), array('class' => 'control-label'))}}
{{ Form::text('name',$data->full_name, array('class' => 'form-control'))}}
{{Form::label('id', __('users.email'), array('class' => 'control-label'))}}
{{ Form::email('email',$data->email, array('class' => 'form-control'))}}
{{Form::label('id', __('users.password'), array('class' => 'control-label'))}}
{{ Form::password('password', array('class' => 'form-control'))}}
{{Form::label('id', __('users.conf-password'), array('class' => 'control-label'))}}
{{ Form::password('confirm_password', array('class' => 'form-control'))}}
{{Form::label('block_user', __('users.block_user'), array('class' => 'control-label'))}}
@php
$studentRejectedReasons = [];
@endphp
@if($data->is_student)
@php
$selectedStudentProfileOption = $data->student_rejected ? 2 : "" ?? "";
@endphp
{!! Form::label('student_profile',__('users.student_profile'),['class' => 'control-label']) !!}
{!! Form::select('is_student_profile', studentProfileOptions(), $selectedStudentProfileOption, [
'class' => 'form-control',
'onchange' => 'studentProfileDecision(this)'
]) !!}
@if(!$data->student_rejected)
{!! Form::label('reason_explanation',__('users.reason_explanation'),['class' => 'control-label col-md-12']) !!}
@endif
@if(isset($data->student_identity))
{!! Form::label('student_identity',__('users.student_identity'),['class' => 'control-label']) !!}
@else
@endif
@endif