Changeset f457265 for resources/views/fragments/dashboard
- Timestamp:
- 02/24/21 21:58:42 (4 years ago)
- Branches:
- master
- Children:
- ff9da8b
- Parents:
- 0c07a90
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resources/views/fragments/dashboard/nav.blade.php
r0c07a90 rf457265 1 1 <div class="header py-4"> 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 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"> 19 19 20 21 22 23 24 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 25 25 26 26 <span class="ml-2 d-none d-lg-block"> 27 27 <span class="text-default">{{ auth()->user()->getFullName() }}</span> 28 28 <small class="text-muted d-block mt-1">{{ ucfirst(auth()->user()->role->name) }}</small> 29 29 </span> 30 31 32 33 34 35 36 37 38 39 40 41 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=" 42 42 event.preventDefault(); 43 43 document.getElementById('logout-form').submit(); 44 44 "> 45 46 47 48 49 50 51 52 53 54 55 56 57 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> 58 58 </div> 59 59 <div class="header collapse d-lg-flex p-0" id="headerMenuCollapse"> 60 61 62 63 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"> 64 64 65 66 67 68 69 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> 70 70 71 72 73 74 75 76 77 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 78 78 79 80 81 82 83 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> 84 84 85 86 87 88 89 90 91 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 92 92 93 94 95 96 97 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> 98 98 99 100 101 102 103 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> 104 104 105 </ul> 106 </div> 107 </div> 108 </div> 105 <li class="nav-item"> 106 <a href="{{ route("dashboard.companies.index") }}" class="nav-link {{ request()->is(['dashboard/companies', 'dashboard/companies/*']) ? 'active' : '' }}"> 107 <i class="fe fe-briefcase"></i> Companies 108 </a> 109 </li> 110 111 </ul> 112 </div> 113 </div> 114 </div> 109 115 </div>
Note:
See TracChangeset
for help on using the changeset viewer.