-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebar.php
27 lines (25 loc) · 1.1 KB
/
sidebar.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php include './navbar.php'; ?>
<div class="main-sidebar sidebar-style-2">
<aside id="sidebar-wrapper">
<div class="sidebar-brand">
<a href="./dashboard.php"> <img alt="image" src="assets/img/logo.png" class="header-logo" /> <span class="logo-name">EVSU APP</span>
</a>
</div>
<ul class="sidebar-menu">
<li class="menu-header">Main</li>
<?php if (Auth::user()->user_type == 'admin') { ?>
<li class="dropdown">
<a href="./admin.php" class="nav-link"><i data-feather="monitor"></i><span>Admin Panel</span></a>
</li>
<?php } ?>
<li class="dropdown">
<a href="./dashboard.php" class="nav-link"><i data-feather="monitor"></i><span>Post Feed</span></a>
</li>
<?php if (Auth::user()->user_type == 'user') { ?>
<li class="dropdown">
<a href="./posts.php" class="nav-link"><i data-feather="list"></i><span>Posts</span></a>
</li>
<?php } ?>
</ul>
</aside>
</div>