|
@@ -1,5 +1,5 @@
|
|
@extends('web.layouts.master')
|
|
@extends('web.layouts.master')
|
|
-@section('content')
|
|
|
|
|
|
+@section('content')
|
|
<section class="bg-half-170 d-table w-100" style="background-color: #efefef; height: 100vh;">
|
|
<section class="bg-half-170 d-table w-100" style="background-color: #efefef; height: 100vh;">
|
|
<div class="container mt-5 pt-4" style="padding: 10px 20px 0px 20px;">
|
|
<div class="container mt-5 pt-4" style="padding: 10px 20px 0px 20px;">
|
|
<div class="col-md-12">
|
|
<div class="col-md-12">
|
|
@@ -7,11 +7,11 @@
|
|
<div class="col-md-12">
|
|
<div class="col-md-12">
|
|
<div class="container">
|
|
<div class="container">
|
|
<div class="row mt-2">
|
|
<div class="row mt-2">
|
|
- <h6 style="font-weight:bold !important;">There are two methods for submitting your proposal :</h6>
|
|
|
|
- <p style="font-size: 13px;"><strong>Method 1:</strong> Contact your supervisor and request their Account Reference Number (ARN). With this number, you can search for the supervisor's account and submit your proposal.</p>
|
|
|
|
- <p style="font-size: 13px;"><strong>Method 2:</strong> Request your supervisor to invite you through Q apply. Once you receive the email invitation, click on the link provided in the email. This will automatically link your application with the supervisor's account, and you only need to click the Submit button</p>
|
|
|
|
|
|
+ <h6 style="font-weight:bold !important;">There are two methods for submitting your proposal :</h6>
|
|
|
|
+ <p style="font-size: 13px;"><strong>Method 1:</strong> Contact your supervisor and request their Account Reference Number (ARN). With this number, you can search for the supervisor's account and submit your proposal.</p>
|
|
|
|
+ <p style="font-size: 13px;"><strong>Method 2:</strong> Request your supervisor to invite you through Q apply. Once you receive the email invitation, click on the link provided in the email. This will automatically link your application with the supervisor's account, and you only need to click the Submit button</p>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="row">
|
|
@@ -20,11 +20,11 @@
|
|
<div class="col-md-12">
|
|
<div class="col-md-12">
|
|
<div class="container-fluid" style="padding:0px !important;">
|
|
<div class="container-fluid" style="padding:0px !important;">
|
|
<div class="row">
|
|
<div class="row">
|
|
- <h6 style="font-weight:bold !important; margin: 0px; color: #141639c4;">Submit your proposals with ease</h6>
|
|
|
|
- <p style="font-size: 13px; color: #141639c4;">Simplify the process and contact with potential supervisors effortlessly!</p>
|
|
|
|
- <p class="mt-1" style="font-size: 13px; color: #141639c4;">Please input the Supervisor's Account Reference Number (ARN) in the search bar below. After verifying that the Supervisor Name, Department and University Name are accurate, click on the <strong>"Apply"</strong> button to complete your submission.</p>
|
|
|
|
|
|
+ <h6 style="font-weight:bold !important; margin: 0px; color: #141639c4;">Submit your proposals with ease</h6>
|
|
|
|
+ <p style="font-size: 13px; color: #141639c4;">Simplify the process and contact with potential supervisors effortlessly!</p>
|
|
|
|
+ <p class="mt-1" style="font-size: 13px; color: #141639c4;">Please input the Supervisor's Account Reference Number (ARN) in the search bar below. After verifying that the Supervisor Name, Department and University Name are accurate, click on the <strong>"Apply"</strong> button to complete your submission.</p>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<div class="col-md-12">
|
|
<div class="row" style="display:flex;">
|
|
<div class="row" style="display:flex;">
|
|
@@ -34,10 +34,10 @@
|
|
<span class="search_button hand search-btn" style="margin-left: -8.8rem; "><span style="display:block; margin-left:11px; margin-top:4px; cursor: pointer;">Search</span></span>
|
|
<span class="search_button hand search-btn" style="margin-left: -8.8rem; "><span style="display:block; margin-left:11px; margin-top:4px; cursor: pointer;">Search</span></span>
|
|
<a href="{{url()->current()}}" class="ref_button hand search-btn ms-2" style="width: 5%; background-color: #ffbd59 !important; border: 2px solid #ffbd59;"><span style="display:block; margin-left:9px; margin-top:4px; cursor: pointer;"><i class="fa fa-refresh" style="color:#ffff !important;"></i></span></a>
|
|
<a href="{{url()->current()}}" class="ref_button hand search-btn ms-2" style="width: 5%; background-color: #ffbd59 !important; border: 2px solid #ffbd59;"><span style="display:block; margin-left:9px; margin-top:4px; cursor: pointer;"><i class="fa fa-refresh" style="color:#ffff !important;"></i></span></a>
|
|
<!-- <button class="btn btncl"></button> -->
|
|
<!-- <button class="btn btncl"></button> -->
|
|
- </div>
|
|
|
|
- <div id="load_data"></div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ </div>
|
|
|
|
+ <div id="load_data"></div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div><!--end col-->
|
|
</div><!--end col-->
|
|
@@ -48,8 +48,8 @@
|
|
<div class="container-fluid" style="padding:0px !important;">
|
|
<div class="container-fluid" style="padding:0px !important;">
|
|
<div class="row">
|
|
<div class="row">
|
|
<p class="mb-1" style="font-size:14px; font-weight:bold !important; color: #141639c4;">Refer a Friend</p>
|
|
<p class="mb-1" style="font-size:14px; font-weight:bold !important; color: #141639c4;">Refer a Friend</p>
|
|
- <p style="font-size: 13px;">Earn points by referring your friends or colleagues to register and submit their first application. Once they submit their application, you will receive the points.</p>
|
|
|
|
- <div class="col-md-12">
|
|
|
|
|
|
+ <p style="font-size: 13px;">Earn points by referring your friends or colleagues to register and submit their first application. Once they submit their application, you will receive the points.</p>
|
|
|
|
+ <div class="col-md-12">
|
|
<div class="row">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="col-md-12">
|
|
<div class="mb-3">
|
|
<div class="mb-3">
|
|
@@ -58,7 +58,7 @@
|
|
<input type="text" class="form-control" id="ref_name" placeholder="Full Name" name="name" required="">
|
|
<input type="text" class="form-control" id="ref_name" placeholder="Full Name" name="name" required="">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
+ </div>
|
|
<div class="col-lg-12" style="margin-top:-18px;">
|
|
<div class="col-lg-12" style="margin-top:-18px;">
|
|
<div class="mb-3">
|
|
<div class="mb-3">
|
|
<label class="form-label"></label>
|
|
<label class="form-label"></label>
|
|
@@ -78,10 +78,10 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div><!--end row-->
|
|
</div><!--end row-->
|
|
@if(count($student_proposal) > 0 )
|
|
@if(count($student_proposal) > 0 )
|
|
@@ -90,8 +90,8 @@
|
|
<div class="container">
|
|
<div class="container">
|
|
<div class="row mt-2">
|
|
<div class="row mt-2">
|
|
<div class="col-md-12">
|
|
<div class="col-md-12">
|
|
- <h6 style="font-weight:bold !important; color: #141639c4;">Application you have submitted that are currently awaiting decisions</h6>
|
|
|
|
- <div class="table-responsive">
|
|
|
|
|
|
+ <h6 style="font-weight:bold !important; color: #141639c4;">Application you have submitted that are currently awaiting decisions</h6>
|
|
|
|
+ <div class="table-responsive">
|
|
<table class="table table-bordered list_table">
|
|
<table class="table table-bordered list_table">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
@@ -107,11 +107,11 @@
|
|
</thead>
|
|
</thead>
|
|
<tbody>
|
|
<tbody>
|
|
@foreach($student_proposal as $key=>$row)
|
|
@foreach($student_proposal as $key=>$row)
|
|
- <tr>
|
|
|
|
|
|
+ <tr>
|
|
<td style="font-size: 11px;">{{++$key}}</td>
|
|
<td style="font-size: 11px;">{{++$key}}</td>
|
|
<td style="font-size: 11px;">{{$row->student_apply_ref}}</td>
|
|
<td style="font-size: 11px;">{{$row->student_apply_ref}}</td>
|
|
<td style="font-size: 11px;"><strong>{{ cn($row,'teacher_details.first_name','')}} {{ cn($row,'teacher_details.last_name','')}}</strong><br>
|
|
<td style="font-size: 11px;"><strong>{{ cn($row,'teacher_details.first_name','')}} {{ cn($row,'teacher_details.last_name','')}}</strong><br>
|
|
- <span>{{cn($row,'teacher_details.designation','')}}</span></td>
|
|
|
|
|
|
+ <span>{{cn($row,'teacher_details.designation','')}}</span></td>
|
|
<td style="font-size: 11px;">{{cn($row,'teacher_details.university_name','')}}</br>
|
|
<td style="font-size: 11px;">{{cn($row,'teacher_details.university_name','')}}</br>
|
|
<span>
|
|
<span>
|
|
@if(isset($row->teacher_details->department_name))
|
|
@if(isset($row->teacher_details->department_name))
|
|
@@ -119,29 +119,29 @@
|
|
@else
|
|
@else
|
|
<span style="font-size: 11px; color: #868e96;">{{cn($row,'teacher_details.others_department','')}}</span>
|
|
<span style="font-size: 11px; color: #868e96;">{{cn($row,'teacher_details.others_department','')}}</span>
|
|
@endif
|
|
@endif
|
|
-
|
|
|
|
- </span></td>
|
|
|
|
|
|
+
|
|
|
|
+ </span></td>
|
|
<td style="font-size: 11px; text-align:center;">
|
|
<td style="font-size: 11px; text-align:center;">
|
|
@php
|
|
@php
|
|
$proposal =\DB::table('proposal')->where('id',$row->proposal_id)->where('student_id',$row->student_id)->first();
|
|
$proposal =\DB::table('proposal')->where('id',$row->proposal_id)->where('student_id',$row->student_id)->first();
|
|
@endphp
|
|
@endphp
|
|
- @if($proposal)
|
|
|
|
|
|
+ @if($proposal)
|
|
<strong>{{ $proposal->proposal_ref}}</strong>
|
|
<strong>{{ $proposal->proposal_ref}}</strong>
|
|
@endif
|
|
@endif
|
|
</td>
|
|
</td>
|
|
- <td style="font-size: 11px; text-align:center;">{{date('d M Y', strtotime($row->created_at))}}</td>
|
|
|
|
|
|
+ <td style="font-size: 11px; text-align:center;">{{date('d M Y', strtotime($row->created_at))}}</td>
|
|
<td style="text-align:center; font-size: 11px;"><span class="label_badge_radius" style="background-color: #d8fdd8; color: green;">Applied</span></td>
|
|
<td style="text-align:center; font-size: 11px;"><span class="label_badge_radius" style="background-color: #d8fdd8; color: green;">Applied</span></td>
|
|
<td style="text-align:center; font-size: 11px;">
|
|
<td style="text-align:center; font-size: 11px;">
|
|
- <span class="open_modal_page hand" data-toogle="tooltips" title="View" data-title="Apply Reference - {{$row->student_apply_ref}} " data-url="{{route('modal-get',['name'=>'view_apply_proposal','id'=>$row->id])}}"><i class="fa fa-eye"></i></span>
|
|
|
|
|
|
+ <span class="open_modal_page hand" data-toogle="tooltips" title="View" data-title="Apply Reference - {{$row->student_apply_ref}} " data-url="{{route('modal-get',['name'=>'view_apply_proposal','id'=>$row->id])}}"><i class="fa fa-eye"></i></span>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
@endforeach
|
|
@endforeach
|
|
</tbody>
|
|
</tbody>
|
|
- </table>
|
|
|
|
- </div>
|
|
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
@@ -155,7 +155,49 @@
|
|
@push('js')
|
|
@push('js')
|
|
|
|
|
|
<script>
|
|
<script>
|
|
- function pop_up_msg(msg='No message specified', type='success', callback=null){
|
|
|
|
|
|
+ function fetch_sub_content(selector, url, args=null){
|
|
|
|
+
|
|
|
|
+ var config={
|
|
|
|
+ spinner: true
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(typeof args=='object'){
|
|
|
|
+ config=Object.assign(config, args);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(config.spinner){
|
|
|
|
+
|
|
|
|
+ $(selector).waitMe({
|
|
|
|
+ effect: 'facebook',
|
|
|
|
+ text: 'Please! Wait ...'
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ $(selector).load(url, null, function(){
|
|
|
|
+ $(selector).waitMe('hide');
|
|
|
|
+ if(typeof args=='function') args();
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function wait_me(selector, config=null){
|
|
|
|
+
|
|
|
|
+ if(config){
|
|
|
|
+
|
|
|
|
+ selector.waitMe(config);
|
|
|
|
+
|
|
|
|
+ }else{
|
|
|
|
+
|
|
|
|
+ selector.waitMe({
|
|
|
|
+ effect: 'facebook',
|
|
|
|
+ //color: '#000',
|
|
|
|
+ text: 'Please! Wait ...'
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function pop_up_msg(msg='No message specified', type='success', callback=null){
|
|
new Noty({
|
|
new Noty({
|
|
theme:'sunset',
|
|
theme:'sunset',
|
|
text: msg,
|
|
text: msg,
|
|
@@ -164,7 +206,7 @@
|
|
callbacks:{
|
|
callbacks:{
|
|
afterClose: callback
|
|
afterClose: callback
|
|
}
|
|
}
|
|
- }).show();
|
|
|
|
|
|
+ }).show();
|
|
}
|
|
}
|
|
|
|
|
|
function err_msg(err){
|
|
function err_msg(err){
|
|
@@ -181,56 +223,65 @@
|
|
|
|
|
|
$(function(){
|
|
$(function(){
|
|
$('.search_button').on('click', function(){
|
|
$('.search_button').on('click', function(){
|
|
- get_data();
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- function get_data(){
|
|
|
|
- var base = '{{url('/')}}';
|
|
|
|
- var teacher_ref_no = $('#teacher_ref_no').val();
|
|
|
|
|
|
+ // get_data();
|
|
|
|
+ var teacher_ref_no = $('#teacher_ref_no').val();
|
|
if(teacher_ref_no){
|
|
if(teacher_ref_no){
|
|
- $.ajax({
|
|
|
|
- method: 'GET',
|
|
|
|
- url: base+'/home/search',
|
|
|
|
- data: {'teacher_ref_no' : teacher_ref_no},
|
|
|
|
- success: function(response){ // What to do if we succeed
|
|
|
|
- //console.log(response);
|
|
|
|
- $('#load_data').html(response);
|
|
|
|
- },
|
|
|
|
- error: function(jqXHR, textStatus, errorThrown) { // What to do if we fail
|
|
|
|
- console.log(JSON.stringify(jqXHR));
|
|
|
|
- console.log("AJAX error: " + textStatus + ' : ' + errorThrown);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ fetch_sub_content(
|
|
|
|
+ '#load_data',
|
|
|
|
+ "{!! route('sub-content', ['name'=>'load_ref_no_available_info']) !!}" +"?teacher_ref_no=" +teacher_ref_no
|
|
|
|
+ );
|
|
}else{
|
|
}else{
|
|
- pop_up_error_msg('Please type a Teacher Reference No.');
|
|
|
|
|
|
+ pop_up_error_msg('Please type a vaild Reference No.');
|
|
}
|
|
}
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ // function get_data(){
|
|
|
|
+ // var base = '{{url('/')}}';
|
|
|
|
+ // var teacher_ref_no = $('#teacher_ref_no').val();
|
|
|
|
+ // if(teacher_ref_no){
|
|
|
|
+ // $.ajax({
|
|
|
|
+ // method: 'GET',
|
|
|
|
+ // url: base+'/home/search',
|
|
|
|
+ // data: {'teacher_ref_no' : teacher_ref_no},
|
|
|
|
+ // success: function(response){ // What to do if we succeed
|
|
|
|
+ // //console.log(response);
|
|
|
|
+ // $('#load_data').html(response);
|
|
|
|
+ // },
|
|
|
|
+ // error: function(jqXHR, textStatus, errorThrown) { // What to do if we fail
|
|
|
|
+ // console.log(JSON.stringify(jqXHR));
|
|
|
|
+ // console.log("AJAX error: " + textStatus + ' : ' + errorThrown);
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ // }else{
|
|
|
|
+ // pop_up_error_msg('Please type a Teacher Reference No.');
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ $('.refer_btn').on('click', function(){
|
|
|
|
|
|
- $('.refer_btn').on('click', function(){
|
|
|
|
-
|
|
|
|
var name =$('#ref_name').val();
|
|
var name =$('#ref_name').val();
|
|
var email =$('#ref_email').val();
|
|
var email =$('#ref_email').val();
|
|
|
|
|
|
var form_data={
|
|
var form_data={
|
|
- _token: "{{ csrf_token() }}",
|
|
|
|
|
|
+ _token: "{{ csrf_token() }}",
|
|
name: name,
|
|
name: name,
|
|
- email: email,
|
|
|
|
|
|
+ email: email,
|
|
}
|
|
}
|
|
|
|
|
|
- $.post("{{ route('ajax-post', ['name'=>'add_refer_user']) }}", form_data, function(res){
|
|
|
|
- pop_up_msg(res.msg);
|
|
|
|
|
|
+ $.post("{{ route('ajax-post', ['name'=>'add_refer_user']) }}", form_data, function(res){
|
|
|
|
+ pop_up_msg(res.msg);
|
|
|
|
|
|
}).fail(function(err){
|
|
}).fail(function(err){
|
|
|
|
|
|
pop_up_msg(err_msg(err), 'error');
|
|
pop_up_msg(err_msg(err), 'error');
|
|
|
|
|
|
- });
|
|
|
|
|
|
+ });
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+
|
|
});
|
|
});
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
|
|
-@endpush
|
|
|
|
|
|
+@endpush
|