222 lines
5.9 KiB
PHP
222 lines
5.9 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="id">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>@yield('title', 'Panel Guru')</title>
|
|
|
|
<!-- Fonts & Bootstrap -->
|
|
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
<style>
|
|
body {
|
|
font-family: 'Poppins', sans-serif;
|
|
background-color: #f8f9fa;
|
|
margin: 0;
|
|
}
|
|
|
|
.wrapper {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* SIDEBAR */
|
|
.sidebar {
|
|
width: 260px;
|
|
background: #ffffff;
|
|
border-right: 2px solid #e6f0ff;
|
|
padding: 30px 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.sidebar-logo {
|
|
text-align: center;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.sidebar-logo img {
|
|
width: 90px;
|
|
}
|
|
|
|
.sidebar-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 18px;
|
|
margin-bottom: 12px;
|
|
border-radius: 12px;
|
|
color: #64748b;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.sidebar-link:hover {
|
|
background: #e6f0ff;
|
|
color: #1d4ed8;
|
|
}
|
|
|
|
.sidebar-link.active {
|
|
background: #e6f0ff;
|
|
color: #1d4ed8;
|
|
}
|
|
|
|
.sidebar-icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar-logout {
|
|
margin-top: auto;
|
|
}
|
|
|
|
/* MAIN */
|
|
.main {
|
|
flex: 1;
|
|
background: #f5f9ff;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* TOPBAR */
|
|
.topbar {
|
|
background: #2b8ef3;
|
|
margin: 20px;
|
|
padding: 16px 24px;
|
|
border-radius: 16px;
|
|
color: white;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.topbar-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.topbar-waving {
|
|
width: 26px;
|
|
height: 26px;
|
|
}
|
|
|
|
.topbar-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.topbar-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* CONTENT */
|
|
.content {
|
|
padding: 20px 30px;
|
|
flex: 1;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="wrapper">
|
|
|
|
<!-- SIDEBAR -->
|
|
<aside class="sidebar">
|
|
|
|
<div class="sidebar-logo">
|
|
<img src="{{ asset('images/logo/logosmk.png') }}" alt="Logo">
|
|
</div>
|
|
|
|
<a href="{{ route('guru.dashboard') }}"
|
|
class="sidebar-link {{ request()->routeIs('guru.dashboard') ? 'active' : '' }}">
|
|
<img src="{{ asset('images/icon/sidebar/home.png') }}" class="sidebar-icon">
|
|
<span>Dashboard</span>
|
|
</a>
|
|
|
|
<a href="{{ route('guru.guru.index') }}"
|
|
class="sidebar-link {{ request()->routeIs('guru.guru.*') ? 'active' : '' }}">
|
|
<img src="{{ asset('images/icon/sidebar/guru.png') }}" class="sidebar-icon">
|
|
<span>Daftar Guru</span>
|
|
</a>
|
|
|
|
<a href="{{ route('guru.kelas.index') }}"
|
|
class="sidebar-link {{ request()->routeIs('guru.kelas.*') ? 'active' : '' }}">
|
|
<img src="{{ asset('images/icon/sidebar/kelas.png') }}" class="sidebar-icon">
|
|
<span>Daftar Kelas</span>
|
|
</a>
|
|
|
|
<a href="{{ route('guru.siswa.index') }}"
|
|
class="sidebar-link {{ request()->routeIs('guru.siswa.*') ? 'active' : '' }}">
|
|
<img src="{{ asset('images/icon/sidebar/siswa.png') }}" class="sidebar-icon">
|
|
<span>Daftar Siswa</span>
|
|
</a>
|
|
|
|
<a href="{{ route('guru.mapel.index') }}"
|
|
class="sidebar-link {{ request()->routeIs('guru.mapel.*') ? 'active' : '' }}">
|
|
<img src="{{ asset('images/icon/sidebar/mapel.png') }}" class="sidebar-icon">
|
|
<span>Mata Pelajaran</span>
|
|
</a>
|
|
|
|
<a href="{{ route('guru.leaderboard.index') }}"
|
|
class="sidebar-link {{ request()->routeIs('guru.leaderboard.*') ? 'active' : '' }}">
|
|
<img src="{{ asset('images/icon/sidebar/lb.png') }}" class="sidebar-icon">
|
|
<span>Leaderboard</span>
|
|
</a>
|
|
|
|
<form action="{{ route('guru.logout') }}" method="POST" class="sidebar-logout">
|
|
@csrf
|
|
<button type="submit" class="btn btn-danger w-100">
|
|
Logout
|
|
</button>
|
|
</form>
|
|
|
|
</aside>
|
|
|
|
<!-- MAIN -->
|
|
<div class="main">
|
|
|
|
<!-- TOPBAR -->
|
|
<header class="topbar">
|
|
|
|
<div class="topbar-left">
|
|
<img src="{{ asset('images/icon/main/hi.png') }}"
|
|
class="topbar-waving"
|
|
alt="Waving">
|
|
|
|
Selamat datang, {{ Auth::guard('guru')->user()->nama ?? 'Guru' }}
|
|
</div>
|
|
|
|
<div class="topbar-right">
|
|
<img src="{{ asset('images/icon/sidebar/notif.png') }}"
|
|
class="topbar-icon"
|
|
alt="Notification">
|
|
|
|
<img src="{{ asset('images/icon/sidebar/profil.png') }}"
|
|
class="topbar-icon"
|
|
alt="Profile">
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<!-- CONTENT -->
|
|
<main class="content">
|
|
@yield('content')
|
|
</main>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
|
</body>
|
|
</html>
|