240 lines
7.2 KiB
PHP
240 lines
7.2 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', 'Admin Dashboard') - Bibit Cabai</title>
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
|
|
<!-- Bootstrap CSS -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
<!-- Font Awesome -->
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
|
|
<!-- Custom Styles -->
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background: #f8f9fa;
|
|
}
|
|
|
|
.admin-container {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* Sidebar Styles */
|
|
.sidebar {
|
|
width: 280px;
|
|
background: linear-gradient(180deg, #28a745, #20c997);
|
|
color: white;
|
|
min-height: 100vh;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 1000;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 25px 20px;
|
|
text-align: center;
|
|
border-bottom: 1px solid rgba(255,255,255,0.1);
|
|
}
|
|
|
|
.sidebar-header h3 {
|
|
font-size: 1.8rem;
|
|
font-weight: bold;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.sidebar-header p {
|
|
opacity: 0.8;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.sidebar-menu {
|
|
padding: 20px 0;
|
|
}
|
|
|
|
.menu-item {
|
|
display: block;
|
|
padding: 15px 25px;
|
|
color: white;
|
|
text-decoration: none;
|
|
transition: all 0.3s;
|
|
border-left: 4px solid transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.menu-item:hover {
|
|
background: rgba(255,255,255,0.1);
|
|
color: white;
|
|
text-decoration: none;
|
|
border-left-color: #fff;
|
|
transform: translateX(5px);
|
|
}
|
|
|
|
.menu-item.active {
|
|
background: rgba(255,255,255,0.2);
|
|
color: white;
|
|
text-decoration: none;
|
|
border-left-color: #fff;
|
|
transform: translateX(5px);
|
|
}
|
|
|
|
.menu-item i {
|
|
width: 20px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
/* Main Content */
|
|
.main-content {
|
|
margin-left: 280px;
|
|
flex: 1;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.admin-header {
|
|
background: white;
|
|
padding: 20px 30px;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
border-bottom: 1px solid #dee2e6;
|
|
}
|
|
|
|
.content-area {
|
|
padding: 30px;
|
|
}
|
|
|
|
.page-header {
|
|
background: white;
|
|
padding: 30px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
/* Breadcrumb */
|
|
.breadcrumb {
|
|
background: transparent;
|
|
padding: 0;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.breadcrumb-item a {
|
|
color: #28a745;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.breadcrumb-item a:hover {
|
|
color: #20c997;
|
|
}
|
|
|
|
/* Animation for transitions */
|
|
.fade-in {
|
|
animation: fadeIn 0.3s ease-in-out;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(10px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
/* Card Styles */
|
|
.card {
|
|
border: none;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.card-header {
|
|
background: linear-gradient(45deg, #f8f9fa, #e9ecef);
|
|
border-bottom: 1px solid #dee2e6;
|
|
border-radius: 12px 12px 0 0 !important;
|
|
}
|
|
|
|
/* Form Styles */
|
|
.form-label {
|
|
font-weight: 600;
|
|
color: #495057;
|
|
}
|
|
|
|
.text-danger {
|
|
color: #dc3545 !important;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.sidebar {
|
|
width: 100%;
|
|
position: relative;
|
|
min-height: auto;
|
|
}
|
|
|
|
.main-content {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
@yield('additional_styles')
|
|
</head>
|
|
|
|
<body>
|
|
<div class="admin-container">
|
|
<!-- Sidebar -->
|
|
<nav class="sidebar">
|
|
<div class="sidebar-header">
|
|
<h3>🌱 Bibit Cabai</h3>
|
|
<p>Admin Dashboard</p>
|
|
<small class="text-light">{{ Auth::user()->name ?? 'Admin User' }}</small>
|
|
</div>
|
|
<div class="sidebar-menu">
|
|
<a href="{{ route('admin.dashboard') }}" class="menu-item {{ request()->routeIs('admin.dashboard') ? 'active' : '' }}">
|
|
<i class="fas fa-tachometer-alt"></i>Dashboard
|
|
</a>
|
|
<a href="{{ route('admin.products.index') }}" class="menu-item {{ request()->routeIs('admin.products.*') ? 'active' : '' }}">
|
|
<i class="fas fa-seedling"></i>Kelola Produk
|
|
</a>
|
|
<a href="{{ route('admin.orders') }}" class="menu-item {{ request()->routeIs('admin.orders') ? 'active' : '' }}">
|
|
<i class="fas fa-shopping-cart"></i>Pesanan
|
|
</a>
|
|
<a href="{{ route('admin.cancellations') }}" class="menu-item active">
|
|
<i class="fas fa-times-circle"></i>Pengajuan Batal
|
|
</a>
|
|
<a href="{{ route('admin.users') }}" class="menu-item {{ request()->routeIs('admin.users') ? 'active' : '' }}">
|
|
<i class="fas fa-users"></i>Pengguna
|
|
</a>
|
|
<a href="{{ route('admin.laporan') }}" class="menu-item {{ request()->routeIs('admin.laporan') ? 'active' : '' }}">
|
|
<i class="fas fa-chart-line"></i>Laporan
|
|
</a>
|
|
<!-- <a href="{{ route('admin.settings') }}" class="menu-item {{ request()->routeIs('admin.settings') ? 'active' : '' }}">
|
|
<i class="fas fa-cog"></i>Pengaturan
|
|
</a> -->
|
|
<div class="mt-4 px-3">
|
|
<form method="POST" action="{{ route('admin.logout') }}">
|
|
@csrf
|
|
<button type="submit" class="btn btn-outline-light btn-sm w-100">
|
|
<i class="fas fa-sign-out-alt me-2"></i>Logout
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
@yield('content')
|
|
</div>
|
|
|
|
<!-- Bootstrap JS -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
|
|
|
@yield('additional_scripts')
|
|
</body>
|
|
</html> |