108 lines
2.7 KiB
PHP
108 lines
2.7 KiB
PHP
<!doctype html>
|
|
<html lang="id">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Halaman Dasbor</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css">
|
|
<style>
|
|
body {
|
|
background-color: #f8f9fa;
|
|
}
|
|
.dashboard-card {
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
|
|
padding: 20px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background: #fff;
|
|
}
|
|
.dashboard-card h5 {
|
|
font-size: 14px;
|
|
color: #6c757d;
|
|
}
|
|
.dashboard-card h3 {
|
|
font-weight: bold;
|
|
}
|
|
.dashboard-icon {
|
|
font-size: 28px;
|
|
color: #0d6efd;
|
|
background: #eef4ff;
|
|
padding: 10px;
|
|
border-radius: 10px;
|
|
}
|
|
.date-box {
|
|
background: #eef4ff;
|
|
color: #0d6efd;
|
|
padding: 6px 12px;
|
|
border-radius: 10px;
|
|
font-size: 14px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="p-4">
|
|
|
|
<div class="container">
|
|
<!-- Header -->
|
|
<div class="d-flex justify-content-between align-items-center mb-4">
|
|
<h3 class="fw-bold">Halaman Dasbor</h3>
|
|
|
|
<div class="d-flex align-items-center gap-3">
|
|
<div class="date-box">
|
|
<i class="bi bi-clock-history"></i>
|
|
{{ \Carbon\Carbon::now()->translatedFormat('l, d F Y') }}
|
|
</div>
|
|
|
|
<!-- Logout -->
|
|
<form action="{{ route('admin.logout') }}" method="POST" class="m-0">
|
|
@csrf
|
|
<button class="btn btn-outline-danger">Logout</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Cards -->
|
|
<div class="row g-4">
|
|
<div class="col-md-4">
|
|
<div class="dashboard-card">
|
|
<div>
|
|
<h5>Kategori</h5>
|
|
<h3>10</h3>
|
|
</div>
|
|
<i class="bi bi-diagram-3 dashboard-icon"></i>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="dashboard-card">
|
|
<div>
|
|
<h5>Templat</h5>
|
|
<h3>20</h3>
|
|
</div>
|
|
<i class="bi bi-card-list dashboard-icon"></i>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="dashboard-card">
|
|
<div>
|
|
<h5>Pelanggan</h5>
|
|
<h3>24</h3>
|
|
</div>
|
|
<i class="bi bi-person dashboard-icon"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Pesan login -->
|
|
<div class="alert alert-success mt-4">
|
|
Berhasil login sebagai <strong>{{ auth('admin')->user()->name }}</strong>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|