@extends('layouts.admin') @section('css') @endsection @section('content')
{{ Form::open(array('route' => $routes, 'method' => 'POST', 'id' => 'ajaxSave'))}}
@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.phone'), array('class' => 'control-label'))}}
{{Form::select('dial_code', $countries, $data->dial_code, ['class' => 'form-control select2'])}}
{{ Form::text('phone',$data->phone, 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('allow_manual_rewards', __('users.manual_reward_points'), ['class' => 'control-label']) !!}
{{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)
@php $reasonsArray = []; $studentRejectedReasons = getFieldDB(['student_rejected_reasons']); if($studentRejectedReasons){ $studentRejectedReasons = isset($studentRejectedReasons['student_rejected_reasons']) && $studentRejectedReasons['student_rejected_reasons'] ? json_decode($studentRejectedReasons['student_rejected_reasons']) : []; $reasonsArray = array_combine($studentRejectedReasons, $studentRejectedReasons); } @endphp {!! Form::label('profile_rejection_reason',__('users.profile_rejection_reason'),['class' => 'control-label']) !!}
{!! Form::select('profile_rejection_reason[]', $reasonsArray, '', [ 'class' => 'form-control', 'id' => 'profile_rejection_reasons' ]) !!}
{!! Form::label('reason_explanation',__('users.reason_explanation'),['class' => 'control-label col-md-12']) !!}
@endif
{!! Form::label('student_verified',__('users.is_student_verified'),['class' => 'control-label']) !!} {!! Form::checkbox('student_verified' , $data->student_verified ?? 0 , $data->student_verified ?? 0 , ['class' => '']) !!}
{!! Form::label('student_valid_till',__('users.student_valid_till'),['class' => 'control-label']) !!} {!! Form::text('student_valid_till' , $data->student_valid_till ? dateFormat($data->student_valid_till, DISPLAY_DATETIME2) : date(DISPLAY_DATETIME2), ['class' => 'form-control datepicker-input-sch']) !!}
@if(isset($data->student_identity))
{!! Form::label('student_identity',__('users.student_identity'),['class' => 'control-label']) !!}
@else
{!! Form::label('student_identity',__('users.student_identity'),['class' => 'control-label']) !!}
{{ Form::file('student_identity', ['class' => 'gallery','accept' => 'image/*'])}}
@endif @endif
@if($data->user_type == 1 && $data->employee_company_id)
{{Form::label('payable_category_id', __('users.employee_payable_category'), array('class' => 'control-label'))}} {{ Form::select('payable_category_id',['' => 'Select Category'] + companyCategory(),$data->payable_category_id, array('class' => 'form-control'))}}
{{Form::label('', __('users.employee_payable'), array('class' => 'control-label'))}} {{ Form::text('',employeePayablePer($data->payable_category_id), array('class' => 'form-control' , 'readonly' => true))}}
@endif
  • {{ Form::submit( __('common.save'), array('class' => 'btn btn-primary width80'))}}
@php $rejectionReasons = json_encode($studentRejectedReasons); @endphp {{ Form::close()}} @if(is_object($data) && $data->id > 0)

{{ __('orders.order_history') }}

{{ __('orders.id') }} {{ __('orders.date') }} {{ __('orders.total_price') }} {{ __('orders.comments') }} {{ __('orders.reward_earned') }} {{ __('orders.reward_consumed') }} {{ __('orders.balance') }}
@endif
@endsection @section('script') @endsection