nav.blade.php 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <div class="sidebar sidebar-light sidebar-main sidebar-expand-md">
  2. <!-- Sidebar mobile toggler -->
  3. <div class="sidebar-mobile-toggler text-center">
  4. <a href="#" class="sidebar-mobile-main-toggle">
  5. <i class="icon-arrow-left8"></i>
  6. </a>
  7. <span class="font-weight-semibold">Navigation</span>
  8. <a href="#" class="sidebar-mobile-expand">
  9. <i class="icon-screen-full"></i>
  10. <i class="icon-screen-normal"></i>
  11. </a>
  12. </div>
  13. <!-- /sidebar mobile toggler -->
  14. <!-- Sidebar content -->
  15. <div class="sidebar-content">
  16. <!-- User menu -->
  17. <div class="sidebar-user-material">
  18. <div class="sidebar-user-material-body" style="background: #333333">
  19. <div class="card-body text-center">
  20. <!-- <a href="#">
  21. <img src="{{ asset('/assets/global/images/placeholders/placeholder.jpg')}}" class="img-fluid rounded-circle shadow-1 mb-3" width="80" height="80" alt="">
  22. </a> -->
  23. <h6 class="mb-0 text-white text-shadow-dark">{{Auth::user()->name}}</h6>
  24. <span class="font-size-sm text-white text-shadow-dark">{{Auth::user()->email}}</span>
  25. </div>
  26. <div class="sidebar-user-material-footer">
  27. <a href="#user-nav" class="d-flex justify-content-between align-items-center text-shadow-dark dropdown-toggle" data-toggle="collapse"><span>My account</span></a>
  28. </div>
  29. </div>
  30. <div class="collapse @if(Request::segment(2) == 'profile'){{'show'}}@endif" id="user-nav">
  31. <ul class="nav nav-sidebar">
  32. <li class="nav-item">
  33. <a href="{{ url('admin/profile/change') }}" class="nav-link @if(Request::segment(2) == 'profile'){{'active'}}@endif">
  34. <i class="icon-user-plus"></i>
  35. <span>My profile</span>
  36. </a>
  37. </li>
  38. <li class="nav-item">
  39. <a href="{{ url('/admin/logout') }}" class="nav-link" onclick="event.preventDefault();
  40. document.getElementById('logout-form').submit();">
  41. <i class="icon-switch2"></i>
  42. <span>Logout</span>
  43. </a>
  44. </li>
  45. </ul>
  46. </div>
  47. </div>
  48. <!-- /user menu -->
  49. <!-- Main navigation -->
  50. <div class="card card-sidebar-mobile">
  51. <ul class="nav nav-sidebar" data-nav-type="accordion">
  52. <!-- Main -->
  53. {{-- <li class="nav-item-header"><div class="text-uppercase font-size-xs line-height-xs">Main</div> <i class="icon-menu" title="Main"></i></li> --}}
  54. <li class="nav-item">
  55. <a href="{{url('/admin/dashboard')}}" class="nav-link @if(Request::segment(2) == 'dashboard'){{'active'}}@endif">
  56. <i class="icon-home4"></i>
  57. <span>
  58. Dashboard
  59. </span>
  60. </a>
  61. </li>
  62. <li class="nav-item">
  63. <a href="{{url('/admin/findCourse')}}" class="nav-link @if(Request::segment(2) == 'findCourse'){{'active'}}@endif">
  64. <i class="icon-folder-search"></i>
  65. <span>
  66. Find Course
  67. </span>
  68. </a>
  69. </li>
  70. <li class="nav-item nav-item-submenu @if(in_array(Request::segment(2), ['destinations','institutes','campuses','levels','courses'])){{'nav-item-open'}}@endif">
  71. <a href="#" class="nav-link"><i class="icon-cogs"></i> <span>Config Data</span></a>
  72. <ul class="nav nav-group-sub" data-submenu-title="Layouts" @if(in_array(Request::segment(2), ['destinations','institutes','campuses','levels','courses'])) style="display: block;" @endif >
  73. <li class="nav-item">
  74. <a href="{{ url('admin/destinations') }}" class="nav-link @if(Request::segment(2) == 'destinations'){{'active'}}@endif">Destinations</a>
  75. </li>
  76. <li class="nav-item">
  77. <a href="{{ url('admin/institutes') }}" class="nav-link @if(Request::segment(2) == 'institutes'){{'active'}}@endif">Institutes</a>
  78. </li>
  79. <li class="nav-item">
  80. <a href="{{ url('admin/campuses') }}" class="nav-link @if(Request::segment(2) == 'campuses'){{'active'}}@endif">Campuses</a>
  81. </li>
  82. <li class="nav-item">
  83. <a href="{{ url('admin/levels') }}" class="nav-link @if(Request::segment(2) == 'levels'){{'active'}}@endif">Levels</a>
  84. </li>
  85. <li class="nav-item">
  86. <a href="{{ url('admin/courses') }}" class="nav-link @if(Request::segment(2) == 'courses'){{'active'}}@endif">Courses</a>
  87. </li>
  88. </ul>
  89. </li>
  90. @if(Auth::user()->can('role_&_permission'))
  91. <li class="nav-item nav-item-submenu @if(in_array(Request::segment(2), ['permissions','roles'])){{'nav-item-open'}}@endif">
  92. <a href="#" class="nav-link"><i class="icon-key"></i> <span>Role & Permission</span></a>
  93. <ul class="nav nav-group-sub" data-submenu-title="Layouts" @if(in_array(Request::segment(2), ['permissions','roles'])) style="display: block;" @endif >
  94. <li class="nav-item">
  95. <a href="{{ url('admin/permissions') }}" class="nav-link @if(Request::segment(2) == 'permissions'){{'active'}}@endif">Permissions</a>
  96. </li>
  97. <li class="nav-item">
  98. <a href="{{ url('admin/roles') }}" class="nav-link @if(Request::segment(2) == 'roles'){{'active'}}@endif">Roles</a>
  99. </li>
  100. </ul>
  101. </li>
  102. @endif
  103. @if(Auth::user()->can('admins'))
  104. <li class="nav-item">
  105. <a href="{{url('/admin/admins')}}" class="nav-link @if(Request::segment(2) == 'admins'){{'active'}}@endif">
  106. <i class="icon-users"></i>
  107. <span>
  108. Admins
  109. </span>
  110. </a>
  111. </li>
  112. @endif
  113. </ul>
  114. </div>
  115. <!-- /main navigation -->
  116. </div>
  117. <!-- /sidebar content -->
  118. </div>