source: resources/views/fragments/dashboard/nav.blade.php@ 0924b6c

Last change on this file since 0924b6c was 0924b6c, checked in by Özkan İliyaz <iliyaz_96@…>, 4 years ago

initial commit

  • Property mode set to 100644
File size: 4.3 KB
Line 
1<div class="header py-4">
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
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
26 <span class="ml-2 d-none d-lg-block">
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>
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 event.preventDefault();
43 document.getElementById('logout-form').submit();
44 ">
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</div>
59<div class="header collapse d-lg-flex p-0" id="headerMenuCollapse">
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
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
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
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
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
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
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
105 </ul>
106 </div>
107 </div>
108 </div>
109</div>
Note: See TracBrowser for help on using the repository browser.