home.blade.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. @extends('web.layouts.master')
  2. @section('content')
  3. <section class="bg-half-170 d-table w-100" style="background-color: #efefef;">
  4. <div class="container mt-5 pt-4 mb-4">
  5. <div class="col-md-12">
  6. <div class="card p-2 rounded border-0" style="background-color: #16183f1c; color: #141639c4;">
  7. <div class="col-md-12">
  8. <div class="container">
  9. <div class="row mt-2">
  10. <h6 style="font-weight:bold !important;">There are two methods for submitting your proposal :</h6>
  11. <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>
  12. <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>
  13. </div>
  14. </div>
  15. </div>
  16. </div>
  17. <div class="row">
  18. <div class="col-md-8 mt-4">
  19. <div class="card p-3 rounded border-0" style="background-color: white; height: 329px;">
  20. <div class="col-md-12">
  21. <div class="container-fluid" style="padding:0px !important;">
  22. <div class="row">
  23. <h6 style="font-weight:bold !important; margin: 0px; color: #141639c4;">Submit your proposals with ease</h6>
  24. <p style="font-size: 13px; color: #141639c4;">Simplify the process and contact with potential supervisors effortlessly!</p>
  25. <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>
  26. </div>
  27. </div>
  28. </div>
  29. <div class="col-md-12">
  30. <div class="row" style="display:flex;">
  31. <div class="mb-1">
  32. <div class="form-icon position-relative" style="display:flex;">
  33. <input type="text" class="form-control search-box" id="teacher_ref_no" placeholder="Please type your Supervisor's ARN here" name="teacher_ref_no" required="">
  34. <sapn class="search_button hand search-btn"><span style="display:block; margin-left:16px; margin-top:4px; cursor: pointer;">Search</span></span>
  35. </div>
  36. <div id="load_data"></div>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. </div><!--end col-->
  42. <div class="col-md-3 mt-4" style="background-color:white; border-radius: 6px; width: 31.5%; margin-left: 8px;">
  43. <div class="row p-2">
  44. <div class="col-md-12">
  45. <div class="mt-2 mb-2">
  46. <div class="container-fluid" style="padding:0px !important;">
  47. <div class="row">
  48. <p class="mb-1" style="font-size:14px; font-weight:bold !important; color: #141639c4;">Refer a Friend</p>
  49. <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>
  50. <div class="col-md-12">
  51. <form class="login-form">
  52. <div class="row">
  53. <div class="col-md-12">
  54. <div class="mb-3">
  55. <label class="form-label"></label>
  56. <div class="form-icon position-relative">
  57. <input type="name" class="form-control" placeholder="Full Name" name="name" required="">
  58. </div>
  59. </div>
  60. </div>
  61. <div class="col-lg-12" style="margin-top:-18px;">
  62. <div class="mb-3">
  63. <label class="form-label"></label>
  64. <div class="form-icon position-relative">
  65. <input type="email" class="form-control" placeholder="Email Address" name="email" required="">
  66. </div>
  67. </div>
  68. </div><!--end col-->
  69. <div class="col-md-12">
  70. <div class="mt-2 mb-4 text-center">
  71. <button type="submit" class="btn btn1" style="padding: 3px 18px;">
  72. {{ __('Invite Now') }}
  73. </button>
  74. </div>
  75. </div>
  76. </div>
  77. </form>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </div><!--end row-->
  86. @if(count($student_proposal) > 0 )
  87. <div class="card p-2 mt-4 rounded border-0" style="background-color: white;">
  88. <div class="col-md-12">
  89. <div class="container">
  90. <div class="row mt-2">
  91. <div class="col-md-12">
  92. <h6 style="font-weight:bold !important; color: #141639c4;">Application you have submitted that are currently awaiting decisions</h6>
  93. <div class="table-responsive">
  94. <table class="table table-bordered list_table">
  95. <thead>
  96. <tr>
  97. <th>Sl</th>
  98. <th>Apply Ref.</th>
  99. <th>Supervisor Name</th>
  100. <th>University Name</th>
  101. <th>Proposal Ref.</th>
  102. <th>Applied On</th>
  103. <th style="text-align:center;">Status</th>
  104. <th style="text-align:center;">action</th>
  105. </tr>
  106. </thead>
  107. <tbody>
  108. @foreach($student_proposal as $key=>$row)
  109. <tr>
  110. <td style="font-size: 11px;">{{++$key}}</td>
  111. <td style="font-size: 11px;">{{$row->student_apply_ref}}</td>
  112. <td style="font-size: 11px;"><strong>{{ cn($row,'teacher_details.first_name','')}} {{ cn($row,'teacher_details.last_name','')}}</strong><br>
  113. <span>{{cn($row,'teacher_details.designation','')}}</span></td>
  114. <td style="font-size: 11px;">{{cn($row,'teacher_details.university_name','')}}</br>
  115. <span>{{cn($row,'teacher_details.department','')}}</span></td>
  116. <td style="font-size: 11px;">
  117. @php
  118. $proposal =\DB::table('proposal')->where('id',$row->proposal_id)->where('student_id',$row->student_id)->first();
  119. @endphp
  120. @if($proposal)
  121. <strong>{{ $proposal->proposal_ref}}</strong>
  122. @endif
  123. </td>
  124. <td style="font-size: 11px;">{{date('d M Y', strtotime($row->created_at))}}</td>
  125. <td style="text-align:center; font-size: 11px;"><span class="label_badge_radius" style="background-color: #d8fdd8; color: green;">Applied</span></td>
  126. <td style="text-align:center; font-size: 11px;">
  127. <span class="open_modal_page hand" data-toogle="tooltips" title="View" data-title="Application Proposal Details" data-url="{{route('modal-get',['name'=>'view_apply_proposal','id'=>$row->id])}}"><i class="fa fa-eye"></i></span>
  128. </td>
  129. </tr>
  130. @endforeach
  131. </tbody>
  132. </table>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. @endif
  140. <div class="w3-container mt-5">
  141. </div>
  142. </div><!--end container-->
  143. </div>
  144. </section>
  145. @endsection
  146. @push('js')
  147. <script>
  148. $(function(){
  149. $('.search_button').on('click', function(){
  150. get_data();
  151. });
  152. function get_data(){
  153. var base = '{{url('/')}}';
  154. var teacher_ref_no = $('#teacher_ref_no').val();
  155. if(teacher_ref_no){
  156. $.ajax({
  157. method: 'GET',
  158. url: base+'/home/search',
  159. data: {'teacher_ref_no' : teacher_ref_no},
  160. success: function(response){ // What to do if we succeed
  161. //console.log(response);
  162. $('#load_data').html(response);
  163. },
  164. error: function(jqXHR, textStatus, errorThrown) { // What to do if we fail
  165. console.log(JSON.stringify(jqXHR));
  166. console.log("AJAX error: " + textStatus + ' : ' + errorThrown);
  167. }
  168. });
  169. }else{
  170. pop_up_error_msg('Please type a Teacher Reference No.');
  171. }
  172. }
  173. });
  174. </script>
  175. @endpush