teacher_profile.blade.php 77 KB

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