TA/web_JMW/resources/views/admin/layout.blade.php

277 lines
5.1 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')</title>
<style>
:root {
--purple: #673ab7;
--purple-dark: #4a148c;
--purple-light: #9c27b0;
--gray-100: #f4f4f8;
--gray-200: #e2e2ea;
--gray-300: #d1d1dd;
--gray-800: #1f2330;
--white: #ffffff;
--green: #16a34a;
--blue: #2563eb;
--danger: #dc2626;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background-color: #eef2ff;
color: #1f232e;
}
.layout {
display: grid;
grid-template-columns: 280px 1fr;
min-height: 100vh;
}
.main {
padding: 30px;
}
.page-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 24px;
margin-bottom: 24px;
}
.page-header h2 {
font-size: 32px;
margin: 0;
}
.page-header p {
margin: 6px 0 0;
color: #475569;
max-width: 640px;
line-height: 1.7;
}
.badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 4px 10px;
border-radius: 999px;
background: #d1fae5;
color: #166534;
font-size: 12px;
font-weight: 600;
}
.panel {
background: var(--white);
border-radius: 24px;
box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
padding: 28px;
margin-bottom: 24px;
}
.panel-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 22px;
gap: 16px;
}
.panel-header h3 {
margin: 0;
font-size: 20px;
}
.button-primary {
border: none;
border-radius: 14px;
padding: 10px 18px;
color: var(--white);
background: var(--blue);
font-weight: 600;
cursor: pointer;
}
.button-secondary {
border: 1px solid #cbd5e1;
background: #f8fafc;
color: #334155;
border-radius: 14px;
padding: 10px 18px;
cursor: pointer;
}
.cards {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 16px;
margin-bottom: 30px;
}
.card {
background: var(--white);
border-radius: 20px;
padding: 22px;
box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
}
.card small {
display: block;
color: #6b7280;
margin-bottom: 10px;
font-size: 13px;
}
.card strong {
font-size: 24px;
display: block;
margin-bottom: 10px;
}
.table-wrap {
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
min-width: 720px;
}
th,
td {
padding: 14px 12px;
text-align: left;
border-bottom: 1px solid #edf2ff;
color: #334155;
font-size: 14px;
}
th {
color: #667085;
text-transform: uppercase;
letter-spacing: 0.06em;
font-size: 12px;
}
.table-avatar {
display: flex;
align-items: center;
gap: 12px;
}
.avatar {
width: 40px;
height: 40px;
border-radius: 999px;
background: #c7d2fe;
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--purple);
font-weight: 700;
}
.tag {
display: inline-flex;
padding: 6px 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 600;
}
.tag-admin { background: #dcfce7; color: #166534; }
.tag-user { background: #eff6ff; color: #0c4a6e; }
.tag-active { background: #ecfccb; color: #365314; }
.tag-inactive { background: #fee2e7; color: #9d174d; }
.status-box {
display: flex;
flex-wrap: wrap;
gap: 16px;
margin-top: 12px;
}
.status-box__item {
flex: 1 1 180px;
background: #f8fafc;
border-radius: 18px;
padding: 18px;
min-width: 180px;
}
.status-box__item strong {
display: block;
font-size: 22px;
margin-bottom: 6px;
}
.form-grid {
display: grid;
grid-template-columns: 1fr;
gap: 16px;
}
.form-group {
display: grid;
gap: 8px;
}
.form-group label {
font-size: 14px;
color: #334155;
}
.form-group input,
.form-group textarea,
.form-group select {
width: 100%;
border: 1px solid #d1d5db;
border-radius: 12px;
padding: 12px 14px;
font-size: 14px;
background: #fff;
color: #0f172a;
}
.form-group textarea {
min-height: 120px;
resize: vertical;
}
.stack {
display: grid;
gap: 16px;
}
.text-muted {
color: #64748b;
}
.text-right {
text-align: right;
}
</style>
</head>
<body>
<div class="layout">
@include('admin.sidebar')
<main class="main">
@yield('content')
</main>
</div>
</body>
</html>