teacher_profile.blade.php 70 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>Research Admission</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="description" content="Information & Guidance on the PhD Process, Connect with Supervisor and Many" />
  8. <meta name="keywords" content="" />
  9. <!-- facebook tags -->
  10. <meta property="og:url" content="http://www.facebook.com/researchadmission"/>
  11. <meta property="og:type" content="website"/>
  12. <meta property="og:title" content="Research Admission"/>
  13. <meta property="og:description" content="Information & Guidance on the PhD Process, Connect with Supervisor and Many"/>
  14. <!-- Linkedin tags -->
  15. <meta property="og:url" content="https://www.linkedin.com/company/researchadmission"/>
  16. <meta property="og:type" content="website"/>
  17. <meta property="og:title" content="Research Admission"/>
  18. <meta property="og:description" content="Information & Guidance on the PhD Process, Connect with Supervisor and Many"/>
  19. <!-- favicon -->
  20. <link rel="shortcut icon" href="{{asset('web/images/logo.png') }}">
  21. <!-- Bootstrap -->
  22. <link href="{{ asset('web/css/bootstrap.min.css') }}" rel="stylesheet" type="text/css" />
  23. <!-- tobii css -->
  24. <link href="{{asset('web/css/tobii.min.css')}}" rel="stylesheet" type="text/css" />
  25. <!-- Icons -->
  26. <link href="{{asset('web/css/materialdesignicons.min.css')}}" rel="stylesheet" type="text/css" />
  27. <link rel="stylesheet" type="text/css" href="{{ asset('web/stylesheets/font-awesome.min.css') }}" />
  28. <link rel="stylesheet" href="https://unicons.iconscout.com/release/v3.0.6/css/line.css">
  29. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css">
  30. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css">
  31. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/11.6.15/sweetalert2.min.css">
  32. <!-- Slider -->
  33. <link rel="stylesheet" href="{{asset('web/css/tiny-slider.css')}}"/>
  34. <!-- Main Css -->
  35. <link href="{{asset('web/css/style.css')}}" rel="stylesheet" type="text/css" id="theme-opt" />
  36. <link href="{{asset('web/css/colors/default.css')}}" rel="stylesheet" id="color-opt">
  37. <link rel="preconnect" href="https://fonts.googleapis.com">
  38. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  39. <link href="https://fonts.googleapis.com/css2?family=Ubuntu:wght@700&display=swap" rel="stylesheet">
  40. <link rel="preconnect" href="https://fonts.googleapis.com">
  41. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  42. <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@200;300&display=swap" rel="stylesheet">
  43. <link rel="stylesheet" href="{{asset('web/css/datepicker.min.css')}}">
  44. <link rel="stylesheet" href="{{asset('web/css/sweetalert/sweetalert.css')}}">
  45. {{-- Ajax Form Submit --}}
  46. <link href="{{ asset('css/noty/lib/noty.css') }}" rel="stylesheet" type="text/css">
  47. <link href="{{ asset('css/noty/lib/themes/sunset.css') }}" rel="stylesheet" type="text/css">
  48. <link href="{{ asset('css/flatpickr/dist/flatpickr.min.css') }}" rel="stylesheet" type="text/css">
  49. <link href="{{ asset('css/wait-me/waitMe.min.css')}}" rel="stylesheet" type="text/css">
  50. </head>
  51. <style>
  52. body {
  53. font-family: 'Oswald', sans-serif;
  54. font-family: 'Quicksand', sans-serif;
  55. }
  56. h1, h2, h3, h4, h5, h6 {
  57. font-family: 'Oswald', sans-serif;
  58. font-family: 'Quicksand', sans-serif;
  59. }
  60. .bg-half-170 {
  61. padding:0px;
  62. }
  63. .bg-primary, .btn-primary, .btn-soft-primary:hover, .btn-soft-primary:focus, .btn-soft-primary:active, .btn-soft-primary.active, .btn-soft-primary.focus, .btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active, .btn-outline-primary.active, .btn-outline-primary.focus, .btn-outline-primary:not(:disabled):not(.disabled):active, .pagination .page-item.active .page-link, .nav-pills .nav-link.active, #preloader #status .spinner .double-bounce1, #preloader #status .spinner .double-bounce2, .social-icon li a:hover, #topnav .navbar-toggle.open span:hover, .bg-animation-left.crypto-home:after, .bg-animation-left.task-management-home:after, .classic-app-image .bg-app-shape:after, .classic-saas-image .bg-saas-shape:after, .swiper-slider-hero .swiper-container .swiper-button-prev:hover, .features.fea-primary:hover, .tns-nav button.tns-nav-active, .ribbon.ribbon-primary span, .sidebar .widget .tagcloud > a:hover, .work-container.work-modern .icons .work-icon:hover, .timeline-page .timeline-item .date-label-left:after, .timeline-page .timeline-item .duration-right:after, #navmenu-nav li.account-menu.active .navbar-link, #navmenu-nav li.account-menu:hover .navbar-link, .qs-datepicker-container .qs-squares .qs-square:not(.qs-empty):not(.qs-disabled):not(.qs-day):not(.qs-active):hover, .qs-datepicker-container .qs-squares .qs-square.qs-current, .carousel-indicators [data-bs-target], .carousel-indicators .active, .tns-controls button[data-controls="prev"]:hover, .tns-controls button[data-controls="next"]:hover, .back-to-top {
  64. background-color: #141639c4 !important;
  65. color: white!important;
  66. border-radius:0px !important;
  67. border-color: #141639c4 !important;
  68. }
  69. .form-check-input.form-check-input:checked{
  70. border-radius:20px !important;
  71. background-color: #141639c4 !important;
  72. }
  73. .form-check-input:focus {
  74. border-color: #141639c4 !important;
  75. background-image:#141639c4 !important;
  76. }
  77. .nav-pills .nav-link{
  78. color: white !important;
  79. }
  80. .nav-pills {
  81. margin-bottom: 0px;
  82. background:none;
  83. }
  84. .logo {
  85. font-weight: 700;
  86. font-size: 24px;
  87. margin-right: 0px;
  88. padding: 0 0 6px;
  89. letter-spacing: 1px;
  90. line-height: 68px;
  91. }
  92. a {
  93. text-decoration: none !important;
  94. }
  95. .table {
  96. width: 100%;
  97. color: #6e6b7b;
  98. }
  99. .list_table thead tr th {
  100. font-size: 12px;
  101. font-weight: 700;
  102. background-color: #16183f69;
  103. text-transform: capitalize;
  104. color: #ffff;
  105. }
  106. .list_table thead tr th {
  107. padding: 11px 6px 10px!important;
  108. }
  109. .list_table .institute_info {
  110. display: flex !important;
  111. }
  112. .list_table .institute_info .left {
  113. width: 37px;
  114. align-self: center;
  115. }
  116. .list_table .institute_info .left .fa {
  117. background: #f1f0fb;
  118. padding: 10px;
  119. border-radius: 100%;
  120. font-size: 14px;
  121. color: #2e1153;
  122. }
  123. tbody, td, tfoot, th, thead, tr {
  124. border-color: inherit;
  125. /* border-style: dashed; */
  126. border-width: 0;
  127. }
  128. .change_pass_btn {
  129. margin-top: 0;
  130. color: #ffff;
  131. border: 1px solid #9f9fa169;
  132. border-radius: 50%;
  133. padding: 8px 8px;
  134. margin-right: 0;
  135. background: #16183f69;
  136. font-size: 15px!important;
  137. }
  138. .change_pass_btn:hover {
  139. color: #ff7f00;
  140. transition: all 1s cubic-bezier(0.19, 1, 0.22, 1) 0s;
  141. border: 1px solid #ff7f00 !important;
  142. }
  143. .icon_bar {
  144. width: fit-content;
  145. overflow: auto;
  146. border-radius: 0.25rem;
  147. padding: 2px 4px;
  148. margin: 0 auto;
  149. border: 0.5px solid #d8e2e7;
  150. }
  151. .icon_bar a {
  152. text-align: center;
  153. padding: 0;
  154. color: #818084;
  155. font-size: 16px;
  156. margin: 0 3px;
  157. border-bottom: none;
  158. top: 0;
  159. }
  160. .label_badge_radius {
  161. color: #2e1153;
  162. border-radius: 20px;
  163. padding: 1px 10px;
  164. font-size: 10px;
  165. line-height: 1.3;
  166. letter-spacing: .2px;
  167. font-weight: 600;
  168. /* background-image: linear-gradient(to right, rgb(46 17 83 / 19%), rgb(245, 244, 253)); */
  169. }
  170. .label_badge_no {
  171. color: red;
  172. border-radius: 20px;
  173. padding: 1px 10px;
  174. font-size: 11px;
  175. line-height: 1.3;
  176. letter-spacing: .2px;
  177. font-weight: 600;
  178. background-color:#ffecee;
  179. }
  180. .label_badge_gpa {
  181. color: #00b4d8;
  182. border-radius: 20px;
  183. padding: 1px 10px;
  184. font-size: 11px;
  185. line-height: 1.3;
  186. letter-spacing: .2px;
  187. font-weight: 600;
  188. background-color: #e5f3ff;
  189. }
  190. .label_badge_work {
  191. border-radius: 20px;
  192. padding: 1px 10px;
  193. font-size: 11px;
  194. line-height: 1.3;
  195. letter-spacing: .2px;
  196. font-weight: 600;
  197. background: #e5ebf7;
  198. color: #2466dc;
  199. }
  200. .ms-5 {
  201. margin-left: 2.4rem!important;
  202. }
  203. .btncl{
  204. padding: 2px 6px;
  205. color: #ffffff !important;
  206. background-color: #ffc107 !important;
  207. border-radius: 30px;
  208. }
  209. .btncl:hover {
  210. background-color: #ffffff !important;
  211. border-color: #ffc107 !important;
  212. color: #ffc107 !important;
  213. }
  214. .btn2{
  215. background-color: #141639c4 !important;
  216. color:white !important;
  217. border-radius: 20px;
  218. box-shadow:none !important;
  219. padding:3px 13px !important;
  220. font-size:13px;
  221. }
  222. .btn2:hover{
  223. background: #fff !important;
  224. color: #141639c4 !important;
  225. border-radius: 20px;
  226. border-color: #2e1153!important;
  227. }
  228. .top_part_status_name {
  229. border-radius: 20px;
  230. padding: 1px 22px 1px 10px;
  231. font-size: 10px;
  232. font-weight: 400;
  233. line-height: 1.3;
  234. letter-spacing: .2px;
  235. top: 0;
  236. position: relative;
  237. width: fit-content;
  238. display: flex;
  239. }
  240. .top_part_status .dropdown .dropdown-menu.show .dropdown-item:first-child {
  241. border-top-left-radius: 0.25rem;
  242. border-top-right-radius: 0.25rem;
  243. }
  244. .top_part_status .dropdown .dropdown-menu.show .dropdown-item:hover {
  245. background: #2e1153;
  246. color: #fff !important;
  247. }
  248. .dropdown-menu {
  249. display: none;
  250. float: left;
  251. min-width:5rem;
  252. padding: 0.5rem 0;
  253. margin: 0.125rem 0 0;
  254. color: #212529;
  255. text-align: left;
  256. list-style: none;
  257. background-color: #fff;
  258. background-clip: padding-box;
  259. border: 1px solid rgba(0,0,0,.15);
  260. border-radius: 0.25rem;
  261. font-size: 11px;
  262. background-color: #dedbf1;
  263. }
  264. .dropdown-item {
  265. display: block;
  266. width: 100%;
  267. clear: both;
  268. font-weight: 400;
  269. text-align: inherit;
  270. white-space: nowrap;
  271. background: 0 0;
  272. border: 0;
  273. padding: 4px 12px;
  274. }
  275. .site-header {
  276. position: fixed;
  277. top: 0;
  278. left: 0;
  279. width: 100%;
  280. height: auto;
  281. max-height: 80px;
  282. background: #fff;
  283. padding: 0px 15px 0 0;
  284. z-index: 80;
  285. }
  286. .sidebar-wrapper .sidebar-menu ul li a {
  287. display: inline-block;
  288. width: 100%;
  289. text-decoration: none;
  290. position: relative;
  291. padding:7px 15px 7px 20px;
  292. }
  293. .sidebar-wrapper .sidebar-menu ul li:hover>a{
  294. background-color: #141639c4 !important;
  295. color:white;
  296. border-radius: 0px !important
  297. }
  298. .sidebar-footer {
  299. position: sticky;
  300. }
  301. .single_glance_row {
  302. font-size: 12px !important;
  303. margin: 0 !important;
  304. border: none;
  305. border-bottom: 1px solid #e8eef1;
  306. border-radius: 0;
  307. padding: 8px 10px;
  308. }
  309. .config{
  310. font-size: 13px;
  311. font-weight: 600;
  312. color: black;
  313. }
  314. .method{
  315. background-color: #2c2d4d;
  316. margin-top: -11px;
  317. width: 20%;
  318. font-size: 14px !important;
  319. color: #fff;
  320. padding-left: 9px;
  321. border-radius: 5px;
  322. }
  323. .method-box{
  324. width: 31.5%;
  325. background-color: #eee;
  326. border-radius: 5px;
  327. }
  328. .label_badge_no {
  329. color: #e75555;
  330. border-radius: 20px;
  331. padding: 1px 10px;
  332. font-size: 11px;
  333. line-height: 1.3;
  334. letter-spacing: .2px;
  335. font-weight: 600;
  336. background-color: #eed4ce;
  337. }
  338. .Q{
  339. border-radius: 20px;
  340. box-shadow:none !important;
  341. font-size:13px;
  342. padding: 5px 10px !important;
  343. background-color: #ffad00 !important;
  344. color: #191e38 !important;
  345. }
  346. .Q:hover{
  347. background: #191e38 !important;
  348. color: #ffad00 !important;
  349. border-radius: 20px;
  350. border-color: #191e38 !important;
  351. }
  352. </style>
  353. <body>
  354. <header id="" class="site-header">
  355. <div class="container-fluid">
  356. <div class="row">
  357. <div class="col-lg-12">
  358. <nav class="mt-2 header-navbar navbar-expand-lg navbar-fixed align-items-center navbar-brand-center">
  359. <div class="navbar-container d-flex content">
  360. <div class="col-md-6" >
  361. <div class="d-flex align-items-center">
  362. <ul class="nav navbar-nav mr-auto header_left">
  363. <li class="nav-item d-flex">
  364. <div class="col md-6 mt-1 mb-1" style="margin-left: 10px;">
  365. <a class="logo" href="index.html">
  366. <h3 style="font-family:Ubuntu !important; color: #3c4858 !important; font-size: 30px !important;">Research Admission</h3>
  367. </a>
  368. </div>
  369. </li>
  370. </ul>
  371. </div>
  372. </div>
  373. <div class="col-md-6" style="display: flex; justify-content: end;">
  374. <div >
  375. <div style="border: 1px solid #e2e9ff; width: auto; border-radius: 10px; display: flex; height: 60%; margin-top: 11px;">
  376. @if(\Auth::guard('teacher')->user()->is_available ==0)
  377. <p class="form-check-label ms-2" style="font-size: 11px; margin-top: 9px;">Not Available for Supervision</p>
  378. @endif
  379. <div class="form-check form-switch ms-3" id="" style="margin-top: 6px;">
  380. <input class="form-check-input teacher_is_available" type="checkbox" name="is_available" value="" @if(\Auth::guard('teacher')->user()->is_available ==0) checked @endif>
  381. @if(\Auth::guard('teacher')->user()->is_available ==1)
  382. <label class="form-check-label" for="" style="font-size: 11px; margin-top: -1px; margin-right: 9px;">Available for Supervision </label>
  383. @endif
  384. </div>
  385. </div>
  386. </div>
  387. <ul class="nav navbar-nav align-items-center ml-auto header_right ps-2">
  388. <li class="nav-item dropdown dropdown-notification">
  389. <a href="javascript:void(0)" class="open_modal_page" data-url="{{route('modal-get',['name'=>'add_wishlist'])}}" data-title="Wishlist">
  390. <button class="btn btn2" style="padding: 5px 10px !important;">New Invite</button>
  391. </a>
  392. </li>
  393. </ul>
  394. @php
  395. $hashids = new \Hashids\Hashids('student_q_signup', 25);
  396. @endphp
  397. <div class="flag_country copy" style="display:flex; cursor:pointer;" data-clipboard-text="{{ url('q-apply/'.$hashids->encode(auth_user('teacher')->id)) }}">
  398. <ul class="nav navbar-nav align-items-center ml-auto header_right ps-2">
  399. <li class="nav-item dropdown dropdown-notification">
  400. <a href="javascript:void(0)">
  401. <button class="btn Q" style="">Q-Apply</button>
  402. </a>
  403. </li>
  404. </ul>
  405. </div>
  406. <ul class="nav navbar-nav align-items-center ml-auto header_right ps-2">
  407. <li class="nav-item dropdown dropdown-notification">
  408. <a href="">
  409. <i class="fa fa-bell change_pass_btn" style="padding: 8px 9px;"></i>
  410. </a>
  411. </li>
  412. </ul>
  413. <ul class="nav navbar-nav align-items-center ml-auto header_right ps-2">
  414. <li class="nav-item dropdown dropdown-notification">
  415. <a href="">
  416. <h5 class="change_pass_btn" style="height: 33px; margin-top: 7px; padding: 4px 9px;">IZ</h5>
  417. </a>
  418. </li>
  419. </ul>
  420. <ul class="nav navbar-nav align-items-center ml-auto header_right ps-2">
  421. <li class="nav-item dropdown dropdown-notification">
  422. <a href="{{ url('teacher-logout') }}"
  423. onclick="event.preventDefault();
  424. document.getElementById('logout-form').submit();">
  425. <i class="fa fa-sign-out change_pass_btn"></i>
  426. </a>
  427. <form id="logout-form" action="{{ url('teacher-logout') }}" method="POST" class="d-none">
  428. @csrf
  429. </form>
  430. </li>
  431. </ul>
  432. </div>
  433. </div>
  434. </nav>
  435. </div>
  436. </div>
  437. </div>
  438. </header>
  439. <section class="bg-half-170 d-table w-100 it-home" style="background-color: #efefef; height:100vh;">
  440. <div class="container-fluid">
  441. <div class="row">
  442. <div class="col-md-2" style="padding:0px">
  443. <nav class="sidebar-wrapper" id="sidebar" style="background-color: #1416398a!important; width: 16.6%; height: 100%; position: fixed; overflow-y: hidden; top: 65px;">
  444. <div class="sidebar-content" style="height: calc(100vh - 75px);">
  445. <div class="sidebar-menu" style="padding-bottom: 110px; height: 100vh; overflow: auto;">
  446. <ul class="nav nav-pills nav-justified flex-column mb-0" id="pills-tab" role="tablist">
  447. <li class="nav-item" style="margin-top: 35px;">
  448. <a class="nav-link active" id="dashboard" data-bs-toggle="pill" href="#dash" role="tab" aria-controls="dash" aria-selected="false">
  449. <div class="text-start py-1 px-2" style="display:flex;">
  450. <i class="fa fa-home ms-3" style="font-size: 11px; margin-top: 3px;"></i>
  451. <h6 class="mb-0" style="margin-left: 6px; font-size: 13px !important;">Dashboard</h6>
  452. </div>
  453. </a><!--end nav link-->
  454. </li><!--end nav item-->
  455. <li class="nav-item">
  456. <a class="nav-link" id="application" data-bs-toggle="pill" href="#applicate" role="tab" aria-controls="dental" aria-selected="false">
  457. <div class="text-start py-1 px-2" style="display:flex;">
  458. <i class="fa fa-graduation-cap ms-3" style="font-size: 11px; margin-top: 3px;"></i>
  459. <h6 class="mb-0" style="margin-left: 6px; font-size: 13px !important;">Application</h6>
  460. </div>
  461. </a><!--end nav link-->
  462. </li><!--end nav item-->
  463. <li class="nav-item">
  464. <a class="nav-link rounded" id="wishlist" data-bs-toggle="pill" href="#list" role="tab" aria-controls="list" aria-selected="false">
  465. <div class="text-start py-1 px-2" style="display:flex;">
  466. <i class="fa fa-shopping-bag ms-3" style="font-size: 11px; margin-top: 3px;"></i>
  467. <h6 class="mb-0" style="margin-left: 6px; font-size: 13px !important;">Wishlist </h6>
  468. </div>
  469. </a><!--end nav link-->
  470. </li><!--end nav item-->
  471. <li class="nav-item">
  472. <a class="nav-link rounded" id="explores" data-bs-toggle="pill" href="#explore" role="tab" aria-controls="explore" aria-selected="false">
  473. <div class="text-start py-1 px-2" style="display:flex;">
  474. <i class="fa fa-university ms-3" style="font-size: 11px; margin-top: 3px;"></i>
  475. <h6 class="mb-0" style="margin-left: 6px; font-size: 13px !important;">Explore</h6>
  476. </div>
  477. </a><!--end nav link-->
  478. </li><!--end nav item-->
  479. <li class="nav-item">
  480. <a class="nav-link rounded" id="myaccount" data-bs-toggle="pill" href="#account" role="tab" aria-controls="account" aria-selected="false">
  481. <div class="text-start py-1 px-2" style="display:flex;">
  482. <i class="fa fa-user ms-3" style="font-size: 11px; margin-top: 3px;"></i>
  483. <h6 class="mb-0" style="margin-left: 6px; font-size: 13px !important;">My Account</h6>
  484. </div>
  485. </a><!--end nav link-->
  486. </li><!--end nav item-->
  487. </ul><!--end nav pills-->
  488. </div>
  489. <div class="sidebar-footer" style="display: block;bottom: 65px !important;">
  490. <div class="sidebar-menu" style="padding: 0 !important;">
  491. <ul class="nav nav-pills nav-justified flex-column mb-0" id="">
  492. <li class="nav-item" style="margin-top: 35px;">
  493. <div class="nav-link" style="background-color: #141639c4; border-radius: 0px !important;">
  494. <div class="text-start py-1 px-2">
  495. <h6 class="mb-0" style="font-size: 12px !important; font-weight:400;">Your Account Reference Number</h6>
  496. <h6 class="mb-0" style="font-size: 13px !important; color: #ffbd59;">{{ auth_user('teacher')->ref_no }}</h6>
  497. </div>
  498. </div><!--end nav link-->
  499. </li><!--end nav item-->
  500. </ul><!--end nav pills-->
  501. </div>
  502. </div>
  503. </div>
  504. </nav>
  505. </div><!--end col-->
  506. <div class="col-md-10 col-12 mt-5" style="padding:1rem; padding-top: 2.5rem!important;">
  507. <div class="tab-content" id="pills-tabContent">
  508. <div class="tab-pane fade show p-2 rounded active" id="dash" role="tabpanel" aria-labelledby="dashboard">
  509. <div class="card p-2 rounded border-0" style="background-color: #ffffff; color: #141639c4; height: 80vh;">
  510. <div class="col-md-12">
  511. <div class="row p-2">
  512. <h6 style="font-weight:bold !important;">3 Ways you can receive proposals from Doctoral candidates : </h6>
  513. <div class="col-md-4 mt-3 ms-3 method-box">
  514. <h6 class="method"> Option 1:</h6>
  515. <p style="font-size: 13px;"> You can give your ARN <span class="mb-0" style="font-size: 13px !important; color: #191e38; font-weight: bolder !important;">({{ auth_user('teacher')->ref_no }})</span> to the student and request them to submit their proposal using your reference.</p>
  516. </div>
  517. <div class="col-md-4 mt-3 ms-3 method-box">
  518. <h6 class="method"> Option 2:</h6>
  519. <p style="font-size: 13px;">You can log in to your account, include the student's name and email address in Q Apply, and send them an invitation. This way, their application will be automatically tagged with your reference.</p>
  520. </div>
  521. <div class="col-md-4 mt-3 ms-3 method-box">
  522. <h6 class="method"> Option 3:</h6>
  523. <p style="font-size: 13px; margin-bottom: 0px;">You can share the Q Apply link with the student and ask them to fill out the form using their name and email. An invitation email will be sent to them, and then they can proceed with method 2.</p>
  524. </div>
  525. </div>
  526. </div>
  527. </div>
  528. </div><!--end teb pane-->
  529. <div class="tab-pane fade show p-2 rounded" id="applicate" role="tabpanel" aria-labelledby="application">
  530. <form method="POST" action="" style="padding: 10px; background-color: #16183f69; border-radius: 5px 5px 0px 0px;">
  531. <div class="row">
  532. <div class="col-md-3">
  533. <div class="mb-1">
  534. <label class="form-label" for="apply_ref" style="color: white; font-size:12px;">Apply Ref/Student Name or Email</label>
  535. <div class="form-icon position-relative">
  536. <input type="text" for="apply_ref" name="apply_ref" id="apply_ref" class="form-control ps-2" required="">
  537. </div>
  538. </div>
  539. </div>
  540. <div class="col-md-3">
  541. <div class="mb-1">
  542. <label class="form-label" for="" style="color: white; font-size:12px;">Status</label>
  543. <div class="form-icon position-relative">
  544. <select name="proposal_status" id="proposal_status" class="form-control frm" required="">
  545. <option disabled="" selected="" value="">Default</option>
  546. <option value="2">Reviewing</option>
  547. <option value="3">Pause</option>
  548. <option value="4">Hold</option>
  549. <option value="5">Interested</option>
  550. <option value="6">Rejected</option>
  551. </select>
  552. </div>
  553. </div>
  554. </div>
  555. <div class="col-md-3">
  556. <div class="mb-1">
  557. <label class="form-label" style="color: white; font-size:12px;">Application Received</label>
  558. <div class="form-icon position-relative">
  559. <input type="text" class="form-control submitted_date" name="submitted_date" id="submitted_date" placeholder="Date Range" data-validation="required" autocomplete="off" value="{{old('submitted_date')}}">
  560. </div>
  561. </div>
  562. </div>
  563. <div class="col-md-3">
  564. <div class="mb-1">
  565. <label class="form-label" for="start date" style="color: white; font-size:12px;">Preffered Start Date</label>
  566. <div class="form-icon position-relative">
  567. <input name="preffered_start_date" type="text" class="form-control preffered_start_date" id="preffered_start_date" placeholder="Date Range" data-validation="required" autocomplete="off" value="{{old('preffered_start_date')}}">
  568. </div>
  569. </div>
  570. </div>
  571. </div>
  572. </form>
  573. <div class="col-md-12" style="background-color:white; border-radius: 0px 0px 5px 5px;">
  574. <div class="mb-4" style="padding:15px;">
  575. <div class="text-end">
  576. <button class="btn btncl"><i class="fa fa-refresh"></i></button>
  577. <button class="btn btn2 search_button">search</button>
  578. </div>
  579. </div>
  580. </div>
  581. <div id="load_data"></div>
  582. </div><!--end teb pane-->
  583. <div class="tab-pane fade bg-white p-2 rounded shadow" id="list" role="tabpanel" aria-labelledby="wisthlist" style="height:100%;">
  584. <div class="col-md-12">
  585. <div class="table-responsive">
  586. <table class="table table-bordered list_table" style="margin: 0px;">
  587. <thead>
  588. <tr>
  589. <th>Sl</th>
  590. <th>Name</th>
  591. <th>Email</th>
  592. <th>Invited on</th>
  593. <th>Applied</th>
  594. <th>Channel</th>
  595. <th class="text-center">Total Invited</th>
  596. </tr>
  597. </thead>
  598. <tbody>
  599. @if(count($refer_users) > 0)
  600. @foreach($refer_users as $key=>$row)
  601. <tr>
  602. <td style="font-size: 11px;">{{$key+1}}</td>
  603. <td style="font-size: 11px;">{{$row->first_name }} {{$row->last_name }}</td>
  604. <td style="font-size: 11px;">{{$row->email}}</td>
  605. <td style="font-size: 11px;">@if(!empty($row->invitation_date)) {{ date('d M Y h.i A', strtotime($row->invitation_date)) }} @else -- @endif</td>
  606. <td style="font-size: 11px;">
  607. @php
  608. $teacher_id =\Auth::guard('teacher')->user()->id;
  609. $submitted =\DB::table('student_proposals')->where(
  610. 'student_id',$row->id
  611. )->where(
  612. 'teacher_id',$teacher_id
  613. )->where(
  614. 'proposal_submit_status',1
  615. )->orderBy('id','DESC')->first();
  616. @endphp
  617. @if(!empty($submitted->submitted_date)) {{ date('d M Y h.i A', strtotime($submitted->submitted_date)) }} @else -- @endif
  618. </td>
  619. <td style="font-size: 11px;">
  620. @if($row->register_type==3)
  621. Q-Apply
  622. @else
  623. --
  624. @endif
  625. </td>
  626. <td class="text-center">
  627. @php
  628. $user_invited_count = \DB::table('refer_users')->where('email',$row->email)->count();
  629. @endphp
  630. @if($user_invited_count > 1)
  631. <span class="badge bg-secondary">
  632. {{ $user_invited_count }}
  633. </span>
  634. @else
  635. --
  636. @endif
  637. </td>
  638. </tr>
  639. @endforeach
  640. @else
  641. <tr>
  642. <td colspan="5" class="text-center text-danger">No data found!</td>
  643. </tr>
  644. @endif
  645. </tbody>
  646. </table>
  647. </div>
  648. </div><!--end col-->
  649. </div><!--end teb pane-->
  650. <div class="tab-pane fade bg-white p-2 rounded shadow" id="explore" role="tabpanel" aria-labelledby="explores" style="height:100%;">
  651. <div class="col-md-12">
  652. <h3 class="p-5" style="text-align: center;">Coming Soon...</h3>
  653. </div><!--end col-->
  654. <!-- Account -->
  655. </div><!--end teb pane-->
  656. <div class="tab-pane fade p-2" id="account" role="tabpanel" aria-labelledby="myaccount" style="height:100%;">
  657. <div class="row">
  658. <div class="col-md-8 rounded p-2 ms-2">
  659. <div class="bg-white p-2 rounded">
  660. <h6 style="padding: 8px 4px 0px; color: #141639c4; font-weight:bold !important;">Application Summary</h6>
  661. <div class="col-md-12 bg-white">
  662. <div class="table-responsive">
  663. <table class="table table-bordered list_table">
  664. <thead>
  665. <tr>
  666. <th>Status</th>
  667. <th>Jan</th>
  668. <th>Feb</th>
  669. <th>Mar</th>
  670. <th>Apr</th>
  671. <th>May</th>
  672. <th>Jun</th>
  673. <th>Jul</th>
  674. <th>Aug</th>
  675. <th>Sept</th>
  676. <th>Oct</th>
  677. <th>Nov</th>
  678. <th>Dec</th>
  679. </tr>
  680. </thead>
  681. <tbody>
  682. <tr>
  683. <td style="font-size: 12px;">App receive</td>
  684. <td style="font-size: 11px;">-</td>
  685. <td style="font-size: 11px;">-</td>
  686. <td style="font-size: 11px;">-</td>
  687. <td style="font-size: 11px;">-</td>
  688. <td style="font-size: 11px;">-</td>
  689. <td style="font-size: 11px;">-</td>
  690. <td style="font-size: 11px;">-</td>
  691. <td style="font-size: 11px;">-</td>
  692. <td style="font-size: 11px;">-</td>
  693. <td style="font-size: 11px;">-</td>
  694. <td style="font-size: 11px;">-</td>
  695. <td style="font-size: 11px;">-</td>
  696. </tr>
  697. <tr>
  698. <td style="font-size: 12px;">Hold</td>
  699. <td style="font-size: 11px;">-</td>
  700. <td style="font-size: 11px;">-</td>
  701. <td style="font-size: 11px;">-</td>
  702. <td style="font-size: 11px;">-</td>
  703. <td style="font-size: 11px;">-</td>
  704. <td style="font-size: 11px;">-</td>
  705. <td style="font-size: 11px;">-</td>
  706. <td style="font-size: 11px;">-</td>
  707. <td style="font-size: 11px;">-</td>
  708. <td style="font-size: 11px;">-</td>
  709. <td style="font-size: 11px;">-</td>
  710. <td style="font-size: 11px;">-</td>
  711. </tr>
  712. <tr>
  713. <td style="font-size: 12px;">Rejected</td>
  714. <td style="font-size: 11px;">-</td>
  715. <td style="font-size: 11px;">-</td>
  716. <td style="font-size: 11px;">-</td>
  717. <td style="font-size: 11px;">-</td>
  718. <td style="font-size: 11px;">-</td>
  719. <td style="font-size: 11px;">-</td>
  720. <td style="font-size: 11px;">-</td>
  721. <td style="font-size: 11px;">-</td>
  722. <td style="font-size: 11px;">-</td>
  723. <td style="font-size: 11px;">-</td>
  724. <td style="font-size: 11px;">-</td>
  725. <td style="font-size: 11px;">-</td>
  726. </tr>
  727. <tr>
  728. <td style="font-size: 12px;">Pause</td>
  729. <td style="font-size: 11px;">-</td>
  730. <td style="font-size: 11px;">-</td>
  731. <td style="font-size: 11px;">-</td>
  732. <td style="font-size: 11px;">-</td>
  733. <td style="font-size: 11px;">-</td>
  734. <td style="font-size: 11px;">-</td>
  735. <td style="font-size: 11px;">-</td>
  736. <td style="font-size: 11px;">-</td>
  737. <td style="font-size: 11px;">-</td>
  738. <td style="font-size: 11px;">-</td>
  739. <td style="font-size: 11px;">-</td>
  740. <td style="font-size: 11px;">-</td>
  741. </tr>
  742. <tr>
  743. <td style="font-size: 12px;">Interested</td>
  744. <td style="font-size: 11px;">-</td>
  745. <td style="font-size: 11px;">-</td>
  746. <td style="font-size: 11px;">-</td>
  747. <td style="font-size: 11px;">-</td>
  748. <td style="font-size: 11px;">-</td>
  749. <td style="font-size: 11px;">-</td>
  750. <td style="font-size: 11px;">-</td>
  751. <td style="font-size: 11px;">-</td>
  752. <td style="font-size: 11px;">-</td>
  753. <td style="font-size: 11px;">-</td>
  754. <td style="font-size: 11px;">-</td>
  755. <td style="font-size: 11px;">-</td>
  756. </tr>
  757. </tbody>
  758. </table>
  759. </div>
  760. </div>
  761. </div>
  762. <div class="col-md-12 mt-3" style="margin-left: -4px;">
  763. <div class="row">
  764. <div class="col-md-5 bg-white rounded p-2 ms-3" style="width: 47.1%;">
  765. <div class="row">
  766. <div class="col-md-12 mt-2">
  767. <div style="display: flex;">
  768. <div class="left" style="width: 90%;">
  769. <span class="title p-2" style="margin-bottom: 0px !important; color: #141639c4; font-weight:bold !important;">Profile</span>
  770. </div>
  771. <div class="right" style="width: 10%;">
  772. <span class="title" style="font-size:11px; font-weight: 600;">
  773. <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>
  774. </span>
  775. </div>
  776. </div>
  777. <div class="single_glance_row mt-5" style="border-bottom: 1px solid #e8eef1;">
  778. <div class="col-md-12">
  779. <div id="demo16" class="collapse mt-2">
  780. <div class="panel-body profile_form" style="padding:10px; background-color: #4b4c6824; border: 1px solid #e9e5e5; border-radius: 5px;">
  781. <input type="hidden" id="u_id" name="id" value="{{$user->id}}">
  782. <div class="row">
  783. <div class="col-md-6">
  784. <div class="mb-2">
  785. <label class="form-label config">First Name</label>
  786. <div class="form-icon position-relative">
  787. <input type="text" class="form-control" placeholder="First Name" id="first_name" name="first_name" value="{{$user->first_name}}" required="" style="font-size: 13px;">
  788. </div>
  789. </div>
  790. </div>
  791. <div class="col-md-6">
  792. <div class="mb-2">
  793. <label class="form-label config">Last Name</label>
  794. <div class="form-icon position-relative">
  795. <input type="text" class="form-control" placeholder="Last Name" id="last_name" name="last_name" value="{{$user->last_name}}" required="" style="font-size: 13px;">
  796. </div>
  797. </div>
  798. </div>
  799. </div>
  800. <div class="col-md-12">
  801. <div class="mb-2">
  802. <label class="form-label config">University Name</label>
  803. <div class="form-icon position-relative">
  804. {{-- <input type="text" class="form-control" placeholder="University Name" id="university_name" name="university_name" value="{{$user->university_name}}" required="" style="font-size: 13px;"> --}}
  805. <select class="form-control" name="university" id="university_id">
  806. <option value="" disabled selected>Choose one..</option>
  807. @foreach($universities as $row)
  808. <option value="{{$row->id}}" @if($user->university_name ==$row->id) selected @endif>{{ $row->name}}</option>
  809. @endforeach
  810. </select>
  811. </div>
  812. </div>
  813. </div>
  814. <div class="col-md-12">
  815. <div class="mb-2">
  816. <label class="form-label config">Department</label>
  817. <div class="form-icon position-relative">
  818. <select class="form-control" name="department" id="department_id">
  819. <option value="" disabled selected>Choose one..</option>
  820. @foreach($departments as $row)
  821. <option value="{{$row->id}}" @if($user->department ==$row->id) selected @endif>{{ $row->name}}</option>
  822. @endforeach
  823. </select>
  824. </div>
  825. </div>
  826. </div>
  827. <div class="col-md-12">
  828. <div class="mb-2">
  829. <label class="form-label config">Designation</label>
  830. <div class="form-icon position-relative">
  831. <input type="text" class="form-control" placeholder="Designation" id="designation" name="designation" value="{{$user->designation}}" required="" style="font-size: 13px;">
  832. </div>
  833. </div>
  834. </div>
  835. <div class="col-md-12">
  836. <div class="text-end">
  837. <button class="btn btn2 update_profile">Update</button>
  838. </div>
  839. </div>
  840. </div>
  841. </div>
  842. </div>
  843. </div>
  844. <div class="left mb-2 mt-2">
  845. <div id="load_profile_info">
  846. </div>
  847. </div>
  848. </div>
  849. </div>
  850. </div><!--end col-->
  851. <div class="col-md-5 bg-white rounded p-2 ms-4" style="width: 47.1%;">
  852. <div class="row">
  853. <div class="col-md-12">
  854. <h6 style="padding: 13px 10px 0px; color: #141639c4; font-weight:bold !important;">Change password</h6>
  855. <div class="form-icon position-relative p-2 mt-2">
  856. <input type="hidden" name="user_id" value="{{$user->id}}" id="user_id">
  857. <input type="password" class="form-control" placeholder="Old password" name="old_password" id="old_password" required="" style="font-size: 13px;">
  858. </div>
  859. <div class="form-icon position-relative p-2">
  860. <input type="password" class="form-control" placeholder="New password" name="new_password" id="new_password" required="" style="font-size: 13px;">
  861. </div>
  862. <div class="form-icon position-relative p-2">
  863. <input type="password" class="form-control" placeholder="Re-type new password" name="new_password_confirmation" id="new_password_confirmation" required="" style="font-size: 13px;">
  864. <div class="col-md-12" style="text-align: center;">
  865. <button class="btn btn2 mt-3 change_password">Changed</button>
  866. </div>
  867. </div>
  868. </div>
  869. </div>
  870. </div><!--end col-->
  871. </div><!--end col-->
  872. </div>
  873. </div><!--end col-->
  874. <div class="col-md-3 bg-white rounded mt-2 p-2 ms-3" style="width: 30%;">
  875. <div class="row">
  876. <div class="col-md-12">
  877. <h6 style="padding: 13px 8px 0px; margin-bottom: 0px; color: #141639c4; font-weight:bold !important;">Research Interest</h6>
  878. <p class="ms-2" style="font-size: 11px;">Make yourself visible to candidates</p>
  879. <div class="col-md-12 mt-2">
  880. <div class="mb-2">
  881. <div class="form-icon position-relative p-2" style="display: flex;">
  882. <input type="hidden" name="user_id" value="{{$user->id}}" id="res_user_id">
  883. <input type="text" class="form-control" placeholder="" name="research" id="research" required="">
  884. <button class="btn btn2 research_interest" style="margin-left: -3.4rem; border-radius: 0px 6px 6px 0px">Add</button>
  885. </div>
  886. </div>
  887. <div id="load_research_interest"></div>
  888. </div>
  889. </div>
  890. </div>
  891. </div>
  892. </div>
  893. </div>
  894. </div><!--end teb pane-->
  895. </div><!--end tab content-->
  896. </div><!--end col-->
  897. </div><!--end row-->
  898. </div><!--end container-->
  899. </section><!--end section-->
  900. <script src="{{asset('web/js/bootstrap.bundle.min.js')}}"></script>
  901. <!-- tobii js -->
  902. <script src="{{asset('web/js/tobii.min.js')}}"></script>
  903. <!-- SLIDER -->
  904. <script src="{{asset('web/js/tiny-slider.js')}}"></script>
  905. <!-- Icons -->
  906. <script src="{{asset('web/js/feather.min.js')}}"></script>
  907. <!-- Main Js -->
  908. <script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.slim.min.js"></script>
  909. <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"></script>
  910. <script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/11.6.15/sweetalert2.min.js"></script>
  911. <script src="{{asset('web/js/plugins.init.js')}}"></script>
  912. <script src="{{asset('web/js/app.js')}}"></script>
  913. <script src="{{asset('web/js/datepicker.min.js')}}"></script>
  914. <script src="{{asset('web/js/bootstrap.bundle.min.js')}}"></script>
  915. <script src="{{asset('web/js/plugins.init.js')}}"></script>
  916. <script src="{{asset('web/js/app.js')}}"></script>
  917. <script src="{{asset('web/css/sweetalert/sweetalert.min.js')}}"></script>
  918. {{-- <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> --}}
  919. {{-- Ajax Form Submit --}}
  920. <script src="{{ asset('css/jquery.min.js') }}"></script>
  921. <script src="{{ asset('css/jquery-form/dist/jquery.form.min.js') }}"></script>
  922. <script src="{{ asset('css/noty/lib/noty.min.js') }}"></script>
  923. <script src="{{ asset('css/flatpickr/dist/flatpickr.min.js') }}"></script>
  924. <script src="{{ asset('css/wait-me/waitMe.min.js')}}"></script>
  925. <script src="{{ asset('css/clipboard/dist/clipboard.min.js')}}"></script>
  926. @include('web.layouts.modal')
  927. <script>
  928. function fetch_sub_content(selector, url, args=null){
  929. var config={
  930. spinner: true
  931. }
  932. if(typeof args=='object'){
  933. config=Object.assign(config, args);
  934. }
  935. if(config.spinner){
  936. $(selector).waitMe({
  937. effect: 'facebook',
  938. text: 'Please! Wait ...'
  939. });
  940. }
  941. $(selector).load(url, null, function(){
  942. $(selector).waitMe('hide');
  943. if(typeof args=='function') args();
  944. });
  945. }
  946. function wait_me(selector, config=null){
  947. if(config){
  948. selector.waitMe(config);
  949. }else{
  950. selector.waitMe({
  951. effect: 'facebook',
  952. //color: '#000',
  953. text: 'Please! Wait ...'
  954. });
  955. }
  956. }
  957. function pop_up_msg(msg='No message specified', type='success', callback=null){
  958. new Noty({
  959. theme:'sunset',
  960. text: msg,
  961. type: type,
  962. timeout:1500,
  963. callbacks:{
  964. afterClose: callback
  965. }
  966. }).show();
  967. }
  968. function err_msg(err){
  969. var msg="Request failed to process, try again later.";
  970. if(err.responseJSON && err.responseJSON.msg){
  971. msg=err.responseJSON.msg;
  972. }
  973. return msg;
  974. }
  975. function ajax_form(form, cllback=null, config={spinner: true}){
  976. $('.btn-submit').prop('disabled', true);
  977. var redirect=$(form).data('redirect');
  978. if(typeof config=='object'){
  979. if(config.spinner) wait_me($(form));
  980. }
  981. $(form).ajaxSubmit({
  982. success:function(res){
  983. wait_me($(form), 'hide');
  984. if(res.msg){
  985. pop_up_msg(res.msg, 'success', function(){
  986. $('.btn-submit').prop('disabled', false);
  987. if(redirect) window.location.replace(redirect);
  988. else if(typeof cllback=='function'){
  989. cllback(form, res);
  990. }
  991. });
  992. }
  993. //$.notify(res.msg, 'success');
  994. },
  995. error:function(res){
  996. wait_me($(form), 'hide');
  997. var msg="Request failed to process, try again later.";
  998. if(res.responseJSON && res.responseJSON.msg){
  999. msg=res.responseJSON.msg;
  1000. }
  1001. pop_up_msg(msg, 'error');
  1002. $('.btn-submit').prop('disabled', false);
  1003. }
  1004. });
  1005. } //End of ajax form definition
  1006. $(function(){
  1007. $(".submitted_date").flatpickr({
  1008. dateFormat: 'd-m-Y',
  1009. mode: "range"
  1010. // maxDate:"today",
  1011. });
  1012. $(".preffered_start_date").flatpickr({
  1013. dateFormat: 'd-m-Y',
  1014. mode: "range"
  1015. // maxDate:"today",
  1016. });
  1017. $("#edit_profile_open_hide").on('click', function(){
  1018. $("#demo16").show();
  1019. });
  1020. $(".start_date").flatpickr({
  1021. dateFormat: "M y",
  1022. });
  1023. var clipboard = new ClipboardJS('.copy');
  1024. clipboard.on('success', function(e){
  1025. //pop_up_msg('Successfully copy this link.');
  1026. new Noty({
  1027. theme:'sunset',
  1028. text: 'Successfully copy this link',
  1029. type: 'success',
  1030. timeout:1500
  1031. }).show();
  1032. });
  1033. fetch_sub_content(
  1034. '#load_profile_info',
  1035. "{{ route('sub-content', ['name'=>'load_profile_info']) }}"
  1036. );
  1037. fetch_sub_content(
  1038. '#load_research_interest',
  1039. "{{ route('sub-content', ['name'=>'load_research_interest']) }}"
  1040. );
  1041. $('.update_profile').on('click', function(){
  1042. var id =$('#u_id').val();
  1043. var first_name =$('#first_name').val();
  1044. var last_name =$('#last_name').val();
  1045. var university_id =$('#university_id').val();
  1046. var department =$('#department_id option:selected').val();
  1047. var designation =$('#designation').val();
  1048. var form_data={
  1049. _token: "{{ csrf_token() }}",
  1050. id: id,
  1051. first_name: first_name,
  1052. last_name: last_name,
  1053. university_id: university_id,
  1054. department: department,
  1055. designation: designation,
  1056. }
  1057. $.post("{{ route('ajax-post', ['name'=>'update_profile']) }}", form_data, function(res){
  1058. pop_up_msg(res.msg);
  1059. $("#demo16").hide();
  1060. fetch_sub_content(
  1061. '#load_profile_info',
  1062. "{{ route('sub-content', ['name'=>'load_profile_info']) }}"
  1063. );
  1064. }).fail(function(err){
  1065. pop_up_msg(err_msg(err), 'error');
  1066. });
  1067. });
  1068. $('.change_password').on('click', function(){
  1069. var id =$('#user_id').val();
  1070. var old_password =$('#old_password').val();
  1071. var new_password =$('#new_password').val();
  1072. var new_password_confirmation =$('#new_password_confirmation').val();
  1073. var form_data={
  1074. _token: "{{ csrf_token() }}",
  1075. id: id,
  1076. old_password: old_password,
  1077. new_password: new_password,
  1078. new_password_confirmation: new_password_confirmation,
  1079. }
  1080. $.post("{{ route('ajax-post', ['name'=>'teacher_change_password']) }}", form_data, function(res){
  1081. pop_up_msg(res.msg);
  1082. }).fail(function(err){
  1083. pop_up_msg(err_msg(err), 'error');
  1084. });
  1085. });
  1086. $('.research_interest').on('click', function(){
  1087. var id =$('#res_user_id').val();
  1088. var research =$('#research').val();
  1089. var form_data={
  1090. _token: "{{ csrf_token() }}",
  1091. id: id,
  1092. research: research,
  1093. }
  1094. $.post("{{ route('ajax-post', ['name'=>'research_interest']) }}", form_data, function(res){
  1095. pop_up_msg(res.msg);
  1096. $('#research').val('');
  1097. fetch_sub_content(
  1098. '#load_research_interest',
  1099. "{{ route('sub-content', ['name'=>'load_research_interest']) }}"
  1100. );
  1101. }).fail(function(err){
  1102. pop_up_msg(err_msg(err), 'error');
  1103. });
  1104. });
  1105. $('.accept_status_update').on('click', function(){
  1106. var self =$(this);
  1107. var id =self.data('id');
  1108. var form_data={
  1109. _token :"{{csrf_token()}}",
  1110. 'id':id,
  1111. }
  1112. swal({
  1113. title: "Are you sure you want to change status?",
  1114. text: "Please check before submitting!",
  1115. type: "warning",
  1116. showCancelButton: true,
  1117. confirmButtonClass: "btn-danger",
  1118. cancelButtonClass: "btn-info",
  1119. confirmButtonText: "Yes",
  1120. cancelButtonText: "No",
  1121. closeOnConfirm: true,
  1122. closeOnCancel: true
  1123. }, function(isConfirm){
  1124. if(isConfirm){
  1125. $.post("{{ route('ajax-post', ['name'=>'accept_status_update']) }}", form_data, function(res){
  1126. pop_up_msg(res.msg);
  1127. window.location.reload();
  1128. }).fail(function(err){
  1129. pop_up_msg(err_msg(err), 'error');
  1130. });
  1131. }
  1132. });
  1133. });
  1134. $('.teacher_is_available').on('click', function(){
  1135. var self =$(this);
  1136. var checked =self.prop("checked");
  1137. var form_data={
  1138. _token :"{{csrf_token()}}",
  1139. 'checked':checked,
  1140. }
  1141. swal({
  1142. title: "Are you sure you want to change status?",
  1143. text: "Please check before submitting!",
  1144. type: "warning",
  1145. showCancelButton: true,
  1146. confirmButtonClass: "btn-danger",
  1147. cancelButtonClass: "btn-info",
  1148. confirmButtonText: "Yes",
  1149. cancelButtonText: "No",
  1150. closeOnConfirm: true,
  1151. closeOnCancel: true
  1152. }, function(isConfirm){
  1153. if(isConfirm){
  1154. $.post("{{ route('ajax-post', ['name'=>'teacher_is_available']) }}", form_data, function(res){
  1155. pop_up_msg(res.msg);
  1156. window.location.reload();
  1157. }).fail(function(err){
  1158. pop_up_msg(err_msg(err), 'error');
  1159. });
  1160. }
  1161. });
  1162. });
  1163. $('.search_button').on('click', function(){
  1164. get_data();
  1165. });
  1166. function get_data(){
  1167. var base = '{{url('/')}}';
  1168. var apply_ref = $('#apply_ref').val();
  1169. var proposal_status = $('#proposal_status').find('option:selected').val();
  1170. var submitted_date = $('#submitted_date').val();
  1171. var preffered_start_date = $('#preffered_start_date').val();
  1172. $.ajax({
  1173. method: 'GET',
  1174. url: base+'/teacher_profile/application/search',
  1175. // url: base+'/applyuser/reports/join_list/search',
  1176. data: {'apply_ref' : apply_ref,'proposal_status' : proposal_status,'submitted_date' : submitted_date,'preffered_start_date' : preffered_start_date},
  1177. success: function(response){ // What to do if we succeed
  1178. $('#load_data').html(response);
  1179. },
  1180. error: function(jqXHR, textStatus, errorThrown) { // What to do if we fail
  1181. console.log(JSON.stringify(jqXHR));
  1182. console.log("AJAX error: " + textStatus + ' : ' + errorThrown);
  1183. }
  1184. });
  1185. }
  1186. });
  1187. // let answer = document.getElementById("interest").contentEditable;
  1188. // document.getElementById("demo").innerHTML = answer;
  1189. </script>
  1190. </body>
  1191. </html>