change layout, update content, and change database

This commit is contained in:
2026-03-05 14:58:36 +07:00
parent 16dfb43530
commit 519d0924c8
9 changed files with 119613 additions and 148 deletions

View File

@@ -7,66 +7,67 @@
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css"/>
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
<style>
body {
margin: 0;
}
/* SIDEBAR */
.sidebar {
width: 220px;
height: 100vh;
position: fixed;
left: 0;
top: 0;
background-color: #0B8F3C;
padding-top: 20px;
}
.nav-link-custom {
color: rgba(255, 255, 255, 0.9);
text-decoration: none;
display: block;
padding: 14px 20px;
font-weight: 500;
transition: 0.2s;
}
.nav-link-custom:hover {
background-color: #06632A;
color: white;
}
.active-link {
border-left: 5px solid #F4C430;
background-color: rgba(255, 255, 255, 0.1);
}
.main-wrapper {
margin-left: 220px;
}
.content-area {
padding: 30px;
background: #f8f9fa;
min-height: calc(100vh - 60px);
}
/* TOP NAVBAR */
/* HEADER */
.top-navbar {
height: 60px;
border-bottom: 4px solid #0B8F3C;
background: #FFFFFF;
background: #0B8F3C;
color: white;
display: flex;
align-items: center;
padding: 0 20px;
padding: 0 25px;
}
.brand-title {
font-weight: 600;
font-size: 18px;
color: #1E63B6;
}
/* NAV BAR */
.nav-bar {
display: flex;
background: white;
border-bottom: 1px solid #dcdcdc;
padding-left: 15px;
}
/* NAV ITEMS */
.nav-item {
padding: 12px 18px;
text-decoration: none;
color: #262626;
font-weight: 500;
border-bottom: 3px solid transparent;
font-size:14px;
}
.nav-item:hover {
background: #cce0d4;
}
/* ACTIVE TAB */
.active-tab {
color: #0B8F3C;
border-bottom: 3px solid #0B8F3C;
background: #e5efe8;
}
/* CONTENT */
.content-area {
padding: 25px;
}
.brand-title {
font-weight: 600;
font-size: 18px;
color: #f8f9fa;
}
.content-area {
@@ -95,50 +96,40 @@
<body>
<!-- Sidebar -->
<div class="sidebar d-flex flex-column justify-content-between">
<div>
<a href="/dashboard" class="nav-link-custom {{ request()->is('dashboard') ? 'active-link' : '' }}">
<span class="nav-text">Overview</span>
</a>
@foreach($programs as $program)
<a href="/dashboard/{{ strtolower($program->code) }}"
class="nav-link-custom {{ request()->is('dashboard/' . strtolower($program->code)) ? 'active-link' : '' }}">
<span class="nav-text">{{ $program->code }}</span>
</a>
@endforeach
<!-- TOP HEADER -->
<div class="top-navbar">
<div class="brand-title">
National Reference Medical Laboratory Surveillance Dashboard
</div>
<div class="mb-3">
<a href="#" class="nav-link-custom">
<span class="nav-icon">⚙️</span>
<span class="nav-text">Settings</span>
</a>
<div class="ms-auto small">
Last update: 12:05 |
Data latency: 510 min |
User: National - Read Only
</div>
</div>
<!-- NAVIGATION BAR -->
<div class="nav-bar">
<a href="/dashboard" class="nav-item {{ request()->is('dashboard') ? 'active-tab' : '' }}">
Overview
</a>
@foreach($programs as $program)
<a href="/dashboard/{{ strtolower($program->code) }}"
class="nav-item {{ request()->is('dashboard/' . strtolower($program->code)) ? 'active-tab' : '' }}">
{{ $program->code }}
</a>
@endforeach
</div>
<!-- Main Wrapper -->
<div class="main-wrapper">
<!-- Top Navbar -->
<div class="top-navbar">
<img src="{{ asset('images/nrml-logo.png') }}" class="brand-logo" alt="NRML Logo">
<div class="brand-title">
National Reference Medical Laboratory Surveillance Dashboard
</div>
<div class="ms-auto text-muted small">
Status: Active Surveillance
</div>
</div>
<!-- Page Content -->
<div class="content-area">