236 lines
6.3 KiB
PHP
236 lines
6.3 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>@yield('title', 'Siswa Panel')</title>
|
|
|
|
<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;
|
|
}
|
|
|
|
.siswa-wrapper {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 260px;
|
|
background: #ffffff;
|
|
border-right: 2px solid #e6f0ff;
|
|
padding: 30px 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.sidebar.collapsed {
|
|
width: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
border: none;
|
|
}
|
|
|
|
.sidebar-logo {
|
|
text-align: center;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.sidebar-logo img {
|
|
width: 90px;
|
|
}
|
|
|
|
.sidebar-menu {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.sidebar-logout button {
|
|
width: 100%;
|
|
border: none;
|
|
background: transparent;
|
|
color: #ef4444;
|
|
font-weight: 600;
|
|
padding: 10px;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.main {
|
|
flex: 1;
|
|
background: #f5f9ff;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.main.full {
|
|
margin-left: 0;
|
|
}
|
|
|
|
/* 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 {
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.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>
|
|
|
|
@stack('styles')
|
|
</head>
|
|
|
|
<body>
|
|
<div class="siswa-wrapper">
|
|
|
|
<!-- SIDEBAR -->
|
|
<aside class="sidebar">
|
|
<div class="sidebar-logo">
|
|
<img src="{{ asset('images/logo/logosmk.png') }}" alt="Logo SMK">
|
|
</div>
|
|
|
|
<nav class="sidebar-menu">
|
|
|
|
<a href="{{ route('siswa.dashboard') }}"
|
|
class="sidebar-link {{ request()->routeIs('siswa.dashboard') ? 'active' : '' }}">
|
|
<img src="{{ asset('images/icon/sidebar/home.png') }}" class="sidebar-icon" alt="">
|
|
<span>Dashboard</span>
|
|
</a>
|
|
|
|
<a href="#"
|
|
class="sidebar-link {{ request()->routeIs('siswa.materi*') ? 'active' : '' }}">
|
|
<img src="{{ asset('images/icon/sidebar/mapel.png') }}" class="sidebar-icon" alt="">
|
|
<span>Materi</span>
|
|
</a>
|
|
|
|
<a href="#"
|
|
class="sidebar-link {{ request()->routeIs('siswa.tugas*') ? 'active' : '' }}">
|
|
<img src="{{ asset('images/icon/sidebar/siswa.png') }}" class="sidebar-icon" alt="">
|
|
<span>Tugas</span>
|
|
</a>
|
|
|
|
<a href="#"
|
|
class="sidebar-link {{ request()->routeIs('siswa.challenge*') ? 'active' : '' }}">
|
|
<img src="{{ asset('images/icon/sidebar/challenge.png') }}" class="sidebar-icon" alt="">
|
|
<span>Challenge</span>
|
|
</a>
|
|
|
|
<a href="#"
|
|
class="sidebar-link {{ request()->routeIs('siswa.leaderboard*') ? 'active' : '' }}">
|
|
<img src="{{ asset('images/icon/sidebar/lb.png') }}" class="sidebar-icon" alt="">
|
|
<span>Leaderboard</span>
|
|
</a>
|
|
|
|
<a href="#"
|
|
class="sidebar-link {{ request()->routeIs('siswa.profil*') ? 'active' : '' }}">
|
|
<img src="{{ asset('images/icon/sidebar/profil.png') }}" class="sidebar-icon" alt="">
|
|
<span>Profil</span>
|
|
</a>
|
|
|
|
</nav>
|
|
|
|
<form action="{{ route('siswa.logout') }}" method="POST" class="sidebar-logout">
|
|
@csrf
|
|
<button type="submit">Logout</button>
|
|
</form>
|
|
</aside>
|
|
|
|
<!-- MAIN -->
|
|
<div class="main">
|
|
|
|
<!-- TOPBAR -->
|
|
<header class="topbar">
|
|
<div class="topbar-left">
|
|
<button id="toggleSidebar"
|
|
style="background:none;border:none;color:white;font-size:22px;margin-right:15px;cursor:pointer;">
|
|
☰
|
|
</button>
|
|
|
|
👋 Hai, {{ Auth::guard('siswa')->user()->nama ?? 'Siswa' }}
|
|
</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>
|
|
@stack('scripts')
|
|
</body>
|
|
</html> |