header.blade.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <header class="header">
  2. <?php
  3. $utypee = Auth::user()->utype;
  4. ?>
  5. @if($utypee == 1)
  6. <a href="{{url('admin/projects')}}" class="logo">
  7. Task Management
  8. </a>
  9. @else
  10. <a href="{{url('user/user_projects')}}" class="logo">
  11. Task Management
  12. </a>
  13. @endif
  14. <!-- Header Navbar: style can be found in header.less -->
  15. <nav class="navbar navbar-static-top" role="navigation">
  16. <div class="toggle-bar-box">
  17. <!-- Sidebar toggle button-->
  18. <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
  19. <span class="sr-only">Toggle navigation</span>
  20. <span class="icon-bar"></span>
  21. <span class="icon-bar"></span>
  22. <span class="icon-bar"></span>
  23. </a>
  24. <div class="dropdown pull-right" style="margin-top:14px;" data-toggle="tooltip" data-placement="left" title="Notifications">
  25. <input type="hidden" class="hdn-user-id" value="{{\Auth::user()->id}}">
  26. <button class="btn btn-primary dropdown-toggle cls-noti-btn" type="button" data-toggle="dropdown">
  27. <i class="fa fa-bell-o" aria-hidden="true"></i>
  28. @if($total_noti > 0)
  29. <span class="badge cls-show-noti-number" style="background-color:#FD5D42;color:#fff;">
  30. {{$total_noti}}
  31. </span>
  32. @endif
  33. </button>
  34. <ul class="dropdown-menu" style="width: 310px;background-color:#E2E3E6;">
  35. @if(count($noti) > 0)
  36. <?php $count = 1; ?>
  37. @foreach($noti as $info)
  38. <li style="padding: 5px;">{{$count++.". "}}{{$info->msg}}</li>
  39. @endforeach
  40. @else
  41. <li>No Notification Available</li>
  42. @endif
  43. </ul>
  44. </div>
  45. @if(\Auth::user()->utype==1)
  46. <div class="dropdown" style="margin-top:14px;margin-left: 84%" data-toggle="tooltip" data-placement="left" title="Notifications">
  47. <button class="btn btn-primary dropdown-toggle cls-noti-btn1" type="button" data-toggle="dropdown">
  48. <i class="fa fa-bell-o" aria-hidden="true"></i>
  49. @if($total_support_noti > 0)
  50. <span class="badge cls-show-noti-number1" style="background-color:#FD5D42;color:#fff;">
  51. {{$total_support_noti}}
  52. </span>
  53. @endif
  54. </button>
  55. <ul class="dropdown-menu" style="width: 310px;background-color:#E2E3E6;">
  56. @if(count($support_noti) > 0)
  57. <?php $count1 = 1; ?>
  58. @foreach($support_noti as $info1)
  59. <li style="padding: 5px;">{{$count1++.". "}}{{$info1->title}}</li>
  60. <input type="hidden" class="ticket_ids" name="ticket_ids[]" value="{{$info1->id}}">
  61. @endforeach
  62. @else
  63. <li>No Support Notification Available</li>
  64. @endif
  65. </ul>
  66. </div>
  67. @endif
  68. </div>
  69. <div class="navbar-right">
  70. <ul class="nav navbar-nav">
  71. <!-- User Account: style can be found in dropdown.less -->
  72. <li class="dropdown user user-menu">
  73. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  74. <i class="fa fa-user"></i>
  75. <span>{{ Auth::user()->name }} <i class="caret"></i></span>
  76. </a>
  77. <ul class="dropdown-menu dropdown-custom dropdown-menu-right">
  78. {{-- <li class="dropdown-header text-center">Account</li> --}}
  79. {{-- <li>
  80. <a href="#">
  81. <i class="fa fa-clock-o fa-fw pull-right"></i>
  82. <span class="badge badge-success pull-right">10</span> Updates</a>
  83. <a href="#">
  84. <i class="fa fa-envelope-o fa-fw pull-right"></i>
  85. <span class="badge badge-danger pull-right">5</span> Messages</a>
  86. <a href="#"><i class="fa fa-magnet fa-fw pull-right"></i>
  87. <span class="badge badge-info pull-right">3</span> Subscriptions</a>
  88. <a href="#"><i class="fa fa-question fa-fw pull-right"></i> <span class=
  89. "badge pull-right">11</span> FAQ</a>
  90. </li> --}}
  91. <li class="divider"></li>
  92. <li>
  93. {{-- <a href="#">
  94. <i class="fa fa-user fa-fw pull-right"></i>
  95. Profile
  96. </a>
  97. <a data-toggle="modal" href="#modal-user-settings">
  98. <i class="fa fa-cog fa-fw pull-right"></i>
  99. Settings
  100. </a>
  101. </li>
  102. <li class="divider"></li> --}}
  103. <li>
  104. <a href="{{ url('/logout') }}"><i class="fa fa-ban fa-fw pull-right"></i> Logout</a>
  105. </li>
  106. </ul>
  107. </li>
  108. </ul>
  109. </div>
  110. </nav>
  111. </header>