[0924b6c] | 1 | <div class="header py-4">
|
---|
[f457265] | 2 | <div class="container">
|
---|
| 3 | <div class="d-flex">
|
---|
| 4 | <a class="header-brand text-primary" href="#">TechnoBlog</a>
|
---|
| 5 | <div class="d-flex order-lg-2 ml-auto">
|
---|
| 6 | <div class="dropdown dropdown-notifications-wrapper d-none d-md-flex">
|
---|
| 7 | <a class="nav-link dropdown-notifications-unread icon" data-toggle="dropdown">
|
---|
| 8 | <i class="fe fe-bell"></i>
|
---|
| 9 | <span class="nav-unread"></span>
|
---|
| 10 | </a>
|
---|
| 11 | <div class="dropdown-menu dropdown-notifications dropdown-menu-right dropdown-menu-arrow">
|
---|
| 12 | <p class='text-center unreadNotificationsInfo'>No unread notifications</p>
|
---|
| 13 | <div class="dropdown-divider"></div>
|
---|
| 14 | <a href="{{ route("dashboard.notifications.index") }}" class="dropdown-item text-center text-muted-dark">See all</a>
|
---|
| 15 | </div>
|
---|
| 16 | </div>
|
---|
| 17 | <div class="dropdown">
|
---|
| 18 | <a href="#" class="nav-link pr-0 leading-none" data-toggle="dropdown">
|
---|
[0924b6c] | 19 |
|
---|
[f457265] | 20 | @if(!empty(auth()->user()->userProfile->profile_photo_link))
|
---|
| 21 | <span class="avatar" style="background-image: url(/uploads/users/{{ auth()->user()->userProfile->profile_photo_link }})"></span>
|
---|
| 22 | @else
|
---|
| 23 | <span class="avatar">{{ strtoupper(auth()->user()->name[0]) . strtoupper(auth()->user()->surname[0]) }}</span>
|
---|
| 24 | @endif
|
---|
[0924b6c] | 25 |
|
---|
[f457265] | 26 | <span class="ml-2 d-none d-lg-block">
|
---|
[0924b6c] | 27 | <span class="text-default">{{ auth()->user()->getFullName() }}</span>
|
---|
| 28 | <small class="text-muted d-block mt-1">{{ ucfirst(auth()->user()->role->name) }}</small>
|
---|
| 29 | </span>
|
---|
[f457265] | 30 | </a>
|
---|
| 31 | <div class="dropdown-menu dropdown-menu-right dropdown-menu-arrow">
|
---|
| 32 | <a class="dropdown-item" href="{{ route("blog.user-profile", ["profileLink" => auth()->user()->userProfile->profile_link]) }}" target="_blank">
|
---|
| 33 | <i class="dropdown-icon fe fe-user"></i> Public Profile
|
---|
| 34 | </a>
|
---|
| 35 | <a class="dropdown-item" href="{{ route("dashboard.settings.index") }}">
|
---|
| 36 | <i class="dropdown-icon fe fe-settings"></i> Settings
|
---|
| 37 | </a>
|
---|
| 38 | <div class="dropdown-divider"></div>
|
---|
| 39 | <a class="dropdown-item"
|
---|
| 40 | href="javascript:void(0)"
|
---|
| 41 | onclick="
|
---|
[0924b6c] | 42 | event.preventDefault();
|
---|
| 43 | document.getElementById('logout-form').submit();
|
---|
| 44 | ">
|
---|
[f457265] | 45 | <i class="dropdown-icon fe fe-log-out"></i> Logout
|
---|
| 46 | </a>
|
---|
| 47 | <form id="logout-form" action="{{ route("auth.logout") }}" method="post">
|
---|
| 48 | @csrf
|
---|
| 49 | </form>
|
---|
| 50 | </div>
|
---|
| 51 | </div>
|
---|
| 52 | </div>
|
---|
| 53 | <a href="#" class="header-toggler d-lg-none ml-3 ml-lg-0" data-toggle="collapse" data-target="#headerMenuCollapse">
|
---|
| 54 | <span class="header-toggler-icon"></span>
|
---|
| 55 | </a>
|
---|
| 56 | </div>
|
---|
| 57 | </div>
|
---|
[0924b6c] | 58 | </div>
|
---|
| 59 | <div class="header collapse d-lg-flex p-0" id="headerMenuCollapse">
|
---|
[f457265] | 60 | <div class="container">
|
---|
| 61 | <div class="row align-items-center">
|
---|
| 62 | <div class="col-lg order-lg-first">
|
---|
| 63 | <ul class="nav nav-tabs border-0 flex-column flex-lg-row">
|
---|
[0924b6c] | 64 |
|
---|
[f457265] | 65 | <li class="nav-item">
|
---|
| 66 | <a href="{{ route("dashboard.index") }}" class="nav-link {{ request()->is('dashboard') ? 'active' : '' }}">
|
---|
| 67 | <i class="fe fe-home"></i> Home
|
---|
| 68 | </a>
|
---|
| 69 | </li>
|
---|
[0924b6c] | 70 |
|
---|
[f457265] | 71 | @if(auth()->user()->hasPermission("access_all_users"))
|
---|
| 72 | <li class="nav-item">
|
---|
| 73 | <a href="{{ route("dashboard.users.index") }}" class="nav-link {{ request()->is(['dashboard/users', 'dashboard/users/*']) ? 'active' : '' }}">
|
---|
| 74 | <i class="fe fe-users"></i> Users
|
---|
| 75 | </a>
|
---|
| 76 | </li>
|
---|
| 77 | @endif
|
---|
[0924b6c] | 78 |
|
---|
[f457265] | 79 | <li class="nav-item">
|
---|
| 80 | <a href="{{ route("dashboard.posts.index") }}" class="nav-link {{ request()->is(['dashboard/posts', 'dashboard/posts/*']) ? 'active' : '' }}">
|
---|
| 81 | <i class="fe fe-database"></i> Posts
|
---|
| 82 | </a>
|
---|
| 83 | </li>
|
---|
[0924b6c] | 84 |
|
---|
[f457265] | 85 | @if(auth()->user()->hasPermission("access_all_categories"))
|
---|
| 86 | <li class="nav-item">
|
---|
| 87 | <a href="{{ route("dashboard.categories.index") }}" class="nav-link {{ request()->is(['dashboard/categories', 'dashboard/categories/*']) ? 'active' : '' }}">
|
---|
| 88 | <i class="fe fe-layers"></i> Categories
|
---|
| 89 | </a>
|
---|
| 90 | </li>
|
---|
| 91 | @endif
|
---|
[0924b6c] | 92 |
|
---|
[f457265] | 93 | <li class="nav-item">
|
---|
| 94 | <a href="{{ route("dashboard.comments.index") }}" class="nav-link {{ request()->is(['dashboard/comments', 'dashboard/comments/*']) ? 'active' : '' }}">
|
---|
| 95 | <i class="fe fe-message-circle"></i> Comments
|
---|
| 96 | </a>
|
---|
| 97 | </li>
|
---|
[0924b6c] | 98 |
|
---|
[f457265] | 99 | <li class="nav-item">
|
---|
| 100 | <a href="{{ route("dashboard.tags.index") }}" class="nav-link {{ request()->is(['dashboard/tags', 'dashboard/tags/*']) ? 'active' : '' }}">
|
---|
| 101 | <i class="fe fe-tag"></i> Tags
|
---|
| 102 | </a>
|
---|
| 103 | </li>
|
---|
[0924b6c] | 104 |
|
---|
[7ed1069] | 105 | @if(auth()->user()->hasRole("admin"))
|
---|
| 106 | <li class="nav-item">
|
---|
| 107 | <a href="{{ route("dashboard.companies.index") }}" class="nav-link {{ request()->is(['dashboard/companies', 'dashboard/companies/*']) ? 'active' : '' }}">
|
---|
| 108 | <i class="fe fe-briefcase"></i> Companies
|
---|
| 109 | </a>
|
---|
| 110 | </li>
|
---|
| 111 | @endif
|
---|
[f457265] | 112 | </ul>
|
---|
| 113 | </div>
|
---|
| 114 | </div>
|
---|
| 115 | </div>
|
---|
[0924b6c] | 116 | </div>
|
---|