header.blade.php 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <header id="" class="site-header">
  2. <div class="container-fluid">
  3. <div class="row">
  4. <div class="col-lg-12">
  5. <nav class="mt-2 header-navbar navbar-expand-lg navbar-fixed align-items-center navbar-brand-center">
  6. <div class="navbar-container d-flex content">
  7. <div class="col-md-6" >
  8. <div class="d-flex align-items-center">
  9. <ul class="nav navbar-nav mr-auto header_left">
  10. <li class="nav-item d-flex">
  11. <div class="col md-6 mt-1 mb-1" style="margin-left: 10px;">
  12. <a class="logo" href="index.html">
  13. <h3 style="font-family:Ubuntu !important; color: #3c4858 !important; font-size: 30px !important;">Research Admission</h3>
  14. </a>
  15. </div>
  16. </li>
  17. </ul>
  18. </div>
  19. </div>
  20. <div class="col-md-6" style="display: flex; justify-content: end;">
  21. <div >
  22. <div style="border: 1px solid #e2e9ff; width: auto; border-radius: 10px; display: flex; height: 60%; margin-top: 11px;">
  23. @if(\Auth::guard('teacher')->user()->is_available ==0)
  24. <p class="form-check-label ms-2" style="font-size: 11px; margin-top: 9px;">Not Available for Supervision</p>
  25. @endif
  26. <div class="form-check form-switch ms-3" id="" style="margin-top: 6px;">
  27. <input class="form-check-input teacher_is_available" type="checkbox" name="is_available" value="" @if(\Auth::guard('teacher')->user()->is_available ==0) checked @endif>
  28. @if(\Auth::guard('teacher')->user()->is_available ==1)
  29. <label class="form-check-label" for="" style="font-size: 11px; margin-top: -1px; margin-right: 9px;">Available for Supervision </label>
  30. @endif
  31. </div>
  32. </div>
  33. </div>
  34. <ul class="nav navbar-nav align-items-center ml-auto header_right ps-2">
  35. <li class="nav-item dropdown dropdown-notification">
  36. <a href="javascript:void(0)" class="open_modal_page" data-url="{{route('modal-get',['name'=>'add_wishlist'])}}" data-title="Wishlist">
  37. <button class="btn btn2" style="padding: 6px 10px !important;">New Invite</button>
  38. </a>
  39. </li>
  40. </ul>
  41. @php
  42. $hashids = new \Hashids\Hashids('student_q_signup', 25);
  43. @endphp
  44. <div class="flag_country copy" style="display:flex; cursor:pointer;" data-clipboard-text="{{ url('/applicant/q-apply/'.$hashids->encode(auth_user('teacher')->id)) }}">
  45. <ul class="nav navbar-nav align-items-center ml-auto header_right ps-2">
  46. <li class="nav-item dropdown dropdown-notification">
  47. <a href="javascript:void(0)">
  48. <button class="btn btn2" style="padding: 6px 10px !important; background-color: #ffad00 !important; color: #191e38 !important;">Q-Apply</button>
  49. </a>
  50. </li>
  51. </ul>
  52. </div>
  53. <ul class="nav navbar-nav align-items-center ml-auto header_right ps-2">
  54. <li class="nav-item dropdown dropdown-notification">
  55. <a href="">
  56. <i class="fa fa-bell change_pass_btn" style="padding: 8px 9px;"></i>
  57. </a>
  58. </li>
  59. </ul>
  60. {{-- <ul class="nav navbar-nav align-items-center ml-auto header_right ps-2">
  61. <li class="nav-item dropdown dropdown-notification">
  62. <a href="">
  63. <h5 class="change_pass_btn" style="height: 33px; margin-top: 7px; padding: 4px 9px;">IZ</h5>
  64. </a>
  65. </li>
  66. </ul> --}}
  67. <ul class="nav navbar-nav align-items-center ml-auto header_right ps-2">
  68. <li class="nav-item dropdown dropdown-notification">
  69. <a href="{{ url('/supervisor/teacher-logout') }}"
  70. onclick="event.preventDefault();
  71. document.getElementById('logout-form').submit();">
  72. <i class="fa fa-sign-out change_pass_btn"></i>
  73. </a>
  74. <form id="logout-form" action="{{ url('/supervisor/teacher-logout') }}" method="POST" class="d-none">
  75. @csrf
  76. </form>
  77. </li>
  78. </ul>
  79. </div>
  80. </div>
  81. </nav>
  82. </div>
  83. </div>
  84. </div>
  85. </header>
  86. @push('js')
  87. <script>
  88. $(".start_date").flatpickr({
  89. dateFormat: "M y",
  90. });
  91. var clipboard = new ClipboardJS('.copy');
  92. clipboard.on('success', function(e){
  93. //pop_up_msg('Successfully copy this link.');
  94. new Noty({
  95. theme:'sunset',
  96. text: 'Successfully copy this link',
  97. type: 'success',
  98. timeout:1500
  99. }).show();
  100. });
  101. $('.teacher_is_available').on('click', function(){
  102. var self =$(this);
  103. var checked =self.prop("checked");
  104. var form_data={
  105. _token :"{{csrf_token()}}",
  106. 'checked':checked,
  107. }
  108. swal({
  109. title: "Are you sure you want to change status?",
  110. text: "Please check before submitting!",
  111. type: "warning",
  112. showCancelButton: true,
  113. confirmButtonClass: "btn-danger",
  114. cancelButtonClass: "btn-info",
  115. confirmButtonText: "Yes",
  116. cancelButtonText: "No",
  117. closeOnConfirm: true,
  118. closeOnCancel: true
  119. }, function(isConfirm){
  120. if(isConfirm){
  121. $.post("{{ route('ajax-post', ['name'=>'teacher_is_available']) }}", form_data, function(res){
  122. pop_up_msg(res.msg);
  123. window.location.reload();
  124. }).fail(function(err){
  125. pop_up_msg(err_msg(err), 'error');
  126. });
  127. }
  128. });
  129. });
  130. </script>
  131. @endpush