navbar.blade.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <nav id="navbar" class="navbar navbar-expand-lg navbar-light shadow-sm fixed-top bg-light pb-0">
  2. <div class="container">
  3. <a class="navbar-brand" href="{{ url('/') }}">
  4. {{ config('app.name', 'Laravel') }}
  5. </a>
  6. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ __('Toggle navigation') }}">
  7. <span class="navbar-toggler-icon"></span>
  8. </button>
  9. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  10. <!-- Left Side Of Navbar -->
  11. <ul class="navbar-nav mr-auto">
  12. <li class="nav-item">
  13. <a class="nav-link" href="#">معرفی</a>
  14. </li>
  15. <li class="nav-item">
  16. <a class="nav-link" href="#">مزایا</a>
  17. </li>
  18. <li class="nav-item">
  19. <a class="nav-link" href="#">تعرفه‌ها</a>
  20. </li>
  21. <li class="nav-item">
  22. <a class="nav-link" href="#">نظرات مشتریان</a>
  23. </li>
  24. <li class="nav-item">
  25. <a class="nav-link" href="#">برخی مشتریان</a>
  26. </li>
  27. <li class="nav-item">
  28. <a class="nav-link" href="#">تماس با ما</a>
  29. </li>
  30. <li class="nav-item">
  31. <a class="nav-link" href="#">
  32. وبلاگ
  33. </a>
  34. </li>
  35. </ul>
  36. <!-- Right Side Of Navbar -->
  37. <ul class="navbar-nav ml-lg-auto">
  38. <!-- Authentication Links -->
  39. @guest
  40. <li class="nav-item">
  41. <a class="nav-link" href="{{ route('login') }}">ورود</a>
  42. </li>
  43. @if (Route::has('register'))
  44. <li class="nav-item">
  45. <a class="nav-link" href="{{ route('register') }}">ثبت‌نام</a>
  46. </li>
  47. @endif
  48. @else
  49. <li class="nav-item dropdown">
  50. <a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
  51. {{ Auth::user()->name }} <span class="caret"></span>
  52. </a>
  53. <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
  54. <a class="dropdown-item" href="{{ route('panel') }}">{{ __('پنل مدیریت') }}</a>
  55. <a class="dropdown-item" href="{{ route('logout') }}"
  56. onclick="event.preventDefault();
  57. document.getElementById('logout-form').submit();">
  58. {{ __('خروج') }}
  59. </a>
  60. <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
  61. @csrf
  62. </form>
  63. </div>
  64. </li>
  65. @endguest
  66. </ul>
  67. </div>
  68. </div>
  69. </nav>