my_account.blade.php 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. @extends('supervisor.layouts.master')
  2. @section('content')
  3. <div class="row">
  4. <div class="col-md-8 rounded p-2 ms-2">
  5. <div class="bg-white p-2 rounded">
  6. <h6 style="padding: 8px 4px 0px; color: #141639c4; font-weight:bold !important;">Application Summary</h6>
  7. <div class="col-md-12 bg-white">
  8. <div class="table-responsive">
  9. <table class="table table-bordered list_table">
  10. <thead>
  11. <tr>
  12. <th>Status</th>
  13. <th>Jan</th>
  14. <th>Feb</th>
  15. <th>Mar</th>
  16. <th>Apr</th>
  17. <th>May</th>
  18. <th>Jun</th>
  19. <th>Jul</th>
  20. <th>Aug</th>
  21. <th>Sept</th>
  22. <th>Oct</th>
  23. <th>Nov</th>
  24. <th>Dec</th>
  25. </tr>
  26. </thead>
  27. <tbody>
  28. <tr>
  29. <td style="font-size: 12px;">App receive</td>
  30. <td style="font-size: 11px;">-</td>
  31. <td style="font-size: 11px;">-</td>
  32. <td style="font-size: 11px;">-</td>
  33. <td style="font-size: 11px;">-</td>
  34. <td style="font-size: 11px;">-</td>
  35. <td style="font-size: 11px;">-</td>
  36. <td style="font-size: 11px;">-</td>
  37. <td style="font-size: 11px;">-</td>
  38. <td style="font-size: 11px;">-</td>
  39. <td style="font-size: 11px;">-</td>
  40. <td style="font-size: 11px;">-</td>
  41. <td style="font-size: 11px;">-</td>
  42. </tr>
  43. <tr>
  44. <td style="font-size: 12px;">Hold</td>
  45. <td style="font-size: 11px;">-</td>
  46. <td style="font-size: 11px;">-</td>
  47. <td style="font-size: 11px;">-</td>
  48. <td style="font-size: 11px;">-</td>
  49. <td style="font-size: 11px;">-</td>
  50. <td style="font-size: 11px;">-</td>
  51. <td style="font-size: 11px;">-</td>
  52. <td style="font-size: 11px;">-</td>
  53. <td style="font-size: 11px;">-</td>
  54. <td style="font-size: 11px;">-</td>
  55. <td style="font-size: 11px;">-</td>
  56. <td style="font-size: 11px;">-</td>
  57. </tr>
  58. <tr>
  59. <td style="font-size: 12px;">Rejected</td>
  60. <td style="font-size: 11px;">-</td>
  61. <td style="font-size: 11px;">-</td>
  62. <td style="font-size: 11px;">-</td>
  63. <td style="font-size: 11px;">-</td>
  64. <td style="font-size: 11px;">-</td>
  65. <td style="font-size: 11px;">-</td>
  66. <td style="font-size: 11px;">-</td>
  67. <td style="font-size: 11px;">-</td>
  68. <td style="font-size: 11px;">-</td>
  69. <td style="font-size: 11px;">-</td>
  70. <td style="font-size: 11px;">-</td>
  71. <td style="font-size: 11px;">-</td>
  72. </tr>
  73. <tr>
  74. <td style="font-size: 12px;">Pause</td>
  75. <td style="font-size: 11px;">-</td>
  76. <td style="font-size: 11px;">-</td>
  77. <td style="font-size: 11px;">-</td>
  78. <td style="font-size: 11px;">-</td>
  79. <td style="font-size: 11px;">-</td>
  80. <td style="font-size: 11px;">-</td>
  81. <td style="font-size: 11px;">-</td>
  82. <td style="font-size: 11px;">-</td>
  83. <td style="font-size: 11px;">-</td>
  84. <td style="font-size: 11px;">-</td>
  85. <td style="font-size: 11px;">-</td>
  86. <td style="font-size: 11px;">-</td>
  87. </tr>
  88. <tr>
  89. <td style="font-size: 12px;">Interested</td>
  90. <td style="font-size: 11px;">-</td>
  91. <td style="font-size: 11px;">-</td>
  92. <td style="font-size: 11px;">-</td>
  93. <td style="font-size: 11px;">-</td>
  94. <td style="font-size: 11px;">-</td>
  95. <td style="font-size: 11px;">-</td>
  96. <td style="font-size: 11px;">-</td>
  97. <td style="font-size: 11px;">-</td>
  98. <td style="font-size: 11px;">-</td>
  99. <td style="font-size: 11px;">-</td>
  100. <td style="font-size: 11px;">-</td>
  101. <td style="font-size: 11px;">-</td>
  102. </tr>
  103. </tbody>
  104. </table>
  105. </div>
  106. </div>
  107. </div>
  108. <div class="col-md-12 mt-3" style="margin-left: -4px;">
  109. <div class="row">
  110. <div class="col-md-5 bg-white rounded p-2 ms-3" style="width: 47.1%;">
  111. <div class="row">
  112. <div class="col-md-12 mt-2">
  113. <div style="display: flex;">
  114. <div class="left" style="width: 90%;">
  115. <span class="title p-2" style="margin-bottom: 0px !important; color: #141639c4; font-weight:bold !important;">Profile</span>
  116. </div>
  117. <div class="right" style="width: 10%;">
  118. <span class="title" style="font-size:11px; font-weight: 600;">
  119. <button type="button" class="btn btn2" id="edit_profile_open_hide" style="padding: 2px 5px !important; font-size: 11px;"><i class="fa fa-pencil"></i></button>
  120. </span>
  121. </div>
  122. </div>
  123. <div class="single_glance_row mt-5" style="border-bottom: 1px solid #e8eef1;">
  124. <div class="col-md-12">
  125. <div id="demo16" class="collapse mt-2">
  126. <div class="panel-body profile_form" style="padding:10px; background-color: #4b4c6824; border: 1px solid #e9e5e5; border-radius: 5px;">
  127. <input type="hidden" id="u_id" name="id" value="{{$user->id}}">
  128. <div class="row">
  129. <div class="col-md-6">
  130. <div class="mb-2">
  131. <label class="form-label config">First Name</label>
  132. <div class="form-icon position-relative">
  133. <input type="text" class="form-control" placeholder="First Name" id="first_name" name="first_name" value="{{$user->first_name}}" required="" style="font-size: 13px;">
  134. </div>
  135. </div>
  136. </div>
  137. <div class="col-md-6">
  138. <div class="mb-2">
  139. <label class="form-label config">Last Name</label>
  140. <div class="form-icon position-relative">
  141. <input type="text" class="form-control" placeholder="Last Name" id="last_name" name="last_name" value="{{$user->last_name}}" required="" style="font-size: 13px;">
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. <div class="col-md-12">
  147. <div class="mb-2">
  148. <label class="form-label config">University Name</label>
  149. <div class="form-icon position-relative">
  150. {{-- <input type="text" class="form-control" placeholder="University Name" id="university_name" name="university_name" value="{{$user->university_name}}" required="" style="font-size: 13px;"> --}}
  151. <select class="form-control" name="university" id="university_id">
  152. <option value="" disabled selected>Choose one..</option>
  153. @foreach($universities as $row)
  154. <option value="{{$row->id}}" @if($user->university_id ==$row->id) selected @endif>{{ $row->name}}</option>
  155. @endforeach
  156. </select>
  157. </div>
  158. </div>
  159. </div>
  160. <div class="col-md-12">
  161. <div class="mb-2">
  162. <label class="form-label config">Department</label>
  163. <div class="form-icon position-relative">
  164. <select class="form-control" name="department" id="department_id">
  165. <option value="" disabled selected>Choose one..</option>
  166. @foreach($departments as $row)
  167. <option value="{{$row->id}}" @if($user->department ==$row->id) selected @endif>{{ $row->name}}</option>
  168. @endforeach
  169. </select>
  170. </div>
  171. </div>
  172. </div>
  173. <div class="col-md-12">
  174. <div class="mb-2">
  175. <label class="form-label config">Designation</label>
  176. <div class="form-icon position-relative">
  177. <input type="text" class="form-control" placeholder="Designation" id="designation" name="designation" value="{{$user->designation}}" required="" style="font-size: 13px;">
  178. </div>
  179. </div>
  180. </div>
  181. <div class="col-md-12">
  182. <div class="text-end">
  183. <button class="btn btn2 update_profile">Update</button>
  184. </div>
  185. </div>
  186. </div>
  187. </div>
  188. </div>
  189. </div>
  190. <div class="left mb-2 mt-2">
  191. <div id="load_profile_info">
  192. </div>
  193. </div>
  194. </div>
  195. </div>
  196. </div><!--end col-->
  197. <div class="col-md-5 bg-white rounded p-2 ms-4" style="width: 47.1%;">
  198. <div class="row">
  199. <div class="col-md-12">
  200. <h6 style="padding: 13px 10px 0px; color: #141639c4; font-weight:bold !important;">Change password</h6>
  201. <div class="form-icon position-relative p-2 mt-2">
  202. <input type="hidden" name="user_id" value="{{$user->id}}" id="user_id">
  203. <input type="password" class="form-control" placeholder="Old password" name="old_password" id="old_password" required="" style="font-size: 13px;">
  204. </div>
  205. <div class="form-icon position-relative p-2">
  206. <input type="password" class="form-control" placeholder="New password" name="new_password" id="new_password" required="" style="font-size: 13px;">
  207. </div>
  208. <div class="form-icon position-relative p-2">
  209. <input type="password" class="form-control" placeholder="Re-type new password" name="new_password_confirmation" id="new_password_confirmation" required="" style="font-size: 13px;">
  210. <div class="col-md-12" style="text-align: center;">
  211. <button class="btn btn2 mt-3 change_password">Changed</button>
  212. </div>
  213. </div>
  214. </div>
  215. </div>
  216. </div><!--end col-->
  217. </div><!--end col-->
  218. </div>
  219. </div><!--end col-->
  220. <div class="col-md-3 bg-white rounded mt-2 p-2 ms-3" style="width: 30%;">
  221. <div class="row">
  222. <div class="col-md-12">
  223. <h6 style="padding: 13px 8px 0px; margin-bottom: 0px; color: #141639c4; font-weight:bold !important;">Research Interest</h6>
  224. <p class="ms-2" style="font-size: 11px;">Make yourself visible to candidates</p>
  225. <div class="col-md-12 mt-2">
  226. <div class="mb-2">
  227. <div class="form-icon position-relative p-2" style="display: flex;">
  228. <input type="hidden" name="user_id" value="{{$user->id}}" id="res_user_id">
  229. <input type="text" class="form-control" placeholder="" name="research" id="research" required="">
  230. <button class="btn btn2 research_interest" style="margin-left: -3.4rem; border-radius: 0px 6px 6px 0px">Add</button>
  231. </div>
  232. </div>
  233. <div id="load_research_interest"></div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. @endsection
  240. @push('js')
  241. <script>
  242. $(function(){
  243. $("#edit_profile_open_hide").on('click', function(){
  244. $("#demo16").show();
  245. });
  246. fetch_sub_content(
  247. '#load_profile_info',
  248. "{{ route('sub-content', ['name'=>'load_profile_info']) }}"
  249. );
  250. fetch_sub_content(
  251. '#load_research_interest',
  252. "{{ route('sub-content', ['name'=>'load_research_interest']) }}"
  253. );
  254. $('.update_profile').on('click', function(){
  255. var id =$('#u_id').val();
  256. var first_name =$('#first_name').val();
  257. var last_name =$('#last_name').val();
  258. var university_id =$('#university_id').val();
  259. var department =$('#department_id option:selected').val();
  260. var designation =$('#designation').val();
  261. var form_data={
  262. _token: "{{ csrf_token() }}",
  263. id: id,
  264. first_name: first_name,
  265. last_name: last_name,
  266. university_id: university_id,
  267. department: department,
  268. designation: designation,
  269. }
  270. $.post("{{ route('ajax-post', ['name'=>'update_profile']) }}", form_data, function(res){
  271. pop_up_msg(res.msg);
  272. $("#demo16").hide();
  273. fetch_sub_content(
  274. '#load_profile_info',
  275. "{{ route('sub-content', ['name'=>'load_profile_info']) }}"
  276. );
  277. }).fail(function(err){
  278. pop_up_msg(err_msg(err), 'error');
  279. });
  280. });
  281. $('.change_password').on('click', function(){
  282. var id =$('#user_id').val();
  283. var old_password =$('#old_password').val();
  284. var new_password =$('#new_password').val();
  285. var new_password_confirmation =$('#new_password_confirmation').val();
  286. var form_data={
  287. _token: "{{ csrf_token() }}",
  288. id: id,
  289. old_password: old_password,
  290. new_password: new_password,
  291. new_password_confirmation: new_password_confirmation,
  292. }
  293. $.post("{{ route('ajax-post', ['name'=>'teacher_change_password']) }}", form_data, function(res){
  294. pop_up_msg(res.msg);
  295. }).fail(function(err){
  296. pop_up_msg(err_msg(err), 'error');
  297. });
  298. });
  299. $('.research_interest').on('click', function(){
  300. var id =$('#res_user_id').val();
  301. var research =$('#research').val();
  302. var form_data={
  303. _token: "{{ csrf_token() }}",
  304. id: id,
  305. research: research,
  306. }
  307. $.post("{{ route('ajax-post', ['name'=>'research_interest']) }}", form_data, function(res){
  308. pop_up_msg(res.msg);
  309. $('#research').val('');
  310. fetch_sub_content(
  311. '#load_research_interest',
  312. "{{ route('sub-content', ['name'=>'load_research_interest']) }}"
  313. );
  314. }).fail(function(err){
  315. pop_up_msg(err_msg(err), 'error');
  316. });
  317. });
  318. });
  319. </script>
  320. @endpush