114 lines
2.5 KiB
PHP
114 lines
2.5 KiB
PHP
<style>
|
|
.sidebar {
|
|
background: linear-gradient(180deg, var(--purple), var(--purple-dark));
|
|
color: var(--white);
|
|
padding: 30px 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
position: sticky;
|
|
top: 0;
|
|
align-self: flex-start;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.brand .dot {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 999px;
|
|
background: #a78bfa;
|
|
}
|
|
|
|
.brand h1 {
|
|
font-size: 20px;
|
|
margin: 0;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.sidebar p {
|
|
margin: 0;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
background: transparent;
|
|
color: inherit;
|
|
text-decoration: none;
|
|
padding: 12px 14px;
|
|
border-radius: 14px;
|
|
transition: background 0.2s ease;
|
|
font-size: 14px;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.nav-item.active,
|
|
.nav-item:hover {
|
|
background: rgba(255,255,255,0.16);
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.14em;
|
|
opacity: 0.75;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.logout {
|
|
margin-top: auto;
|
|
display: inline-flex;
|
|
width: 100%;
|
|
}
|
|
|
|
.logout button {
|
|
width: 100%;
|
|
border: none;
|
|
border-radius: 12px;
|
|
padding: 12px;
|
|
background: rgba(255,255,255,0.18);
|
|
color: #fff;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
}
|
|
</style>
|
|
|
|
<aside class="sidebar">
|
|
<div class="brand">
|
|
<div class="dot"></div>
|
|
<div>
|
|
<h1>Admin Panel</h1>
|
|
<p>Selamat datang, admin!</p>
|
|
</div>
|
|
</div>
|
|
|
|
<p class="section-title">Administrator</p>
|
|
<nav>
|
|
<a class="nav-item {{ Request::routeIs('dashboard') ? 'active' : '' }}" href="{{ route('dashboard') }}">Dashboard</a>
|
|
<a class="nav-item {{ Request::routeIs('kategori') ? 'active' : '' }}" href="{{ route('kategori') }}">Manajemen Kategori</a>
|
|
<a class="nav-item {{ Request::routeIs('riwayat') ? 'active' : '' }}" href="{{ route('riwayat') }}">Riwayat Transaksi</a>
|
|
<a class="nav-item {{ Request::routeIs('input') ? 'active' : '' }}" href="{{ route('input') }}">Input Transaksi</a>
|
|
<a class="nav-item {{ Request::routeIs('laporan') ? 'active' : '' }}" href="{{ route('laporan') }}">Laporan</a>
|
|
</nav>
|
|
|
|
<form action="{{ route('logout') }}" method="POST" class="logout">
|
|
@csrf
|
|
<button type="submit">Logout</button>
|
|
</form>
|
|
</aside>
|