chore: initial Laravel 13 project setup for eCert MBIP

- Laravel 13.9 + PHP 8.5 + MySQL
- Bootstrap 5.3 + jQuery 3.7 + Chart.js (replacing Alpine/Tailwind)
- Packages: intervention/image, dompdf, simple-qrcode, league/csv, laravel/breeze, laravel/boost
- 17 database migrations: users, programs, qr_codes, participants, attendances, certificates, questionnaires, email_logs, audit_logs
- 13 Eloquent models with full relationships
- Admin layout (Bootstrap 5 sidebar) + public layout (mobile-first)
- Rate limiters: checkin (60/min), certificate (30/min)
- Admin seeder: admin@mbip.gov.my
- Storage directories + symlink configured

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Saufi
2026-05-16 15:44:19 +08:00
commit 5b85822b78
159 changed files with 18351 additions and 0 deletions

153
resources/css/app.css Normal file
View File

@@ -0,0 +1,153 @@
@import 'bootstrap/dist/css/bootstrap.min.css';
/* eCert MBIP Custom Styles */
:root {
--mbip-primary: #1a56a0;
--mbip-secondary: #e8f0fe;
--mbip-accent: #f0a500;
--mbip-success: #198754;
--mbip-danger: #dc3545;
}
/* Admin Sidebar Layout */
.sidebar {
min-height: 100vh;
background: var(--mbip-primary);
width: 260px;
transition: width 0.3s ease;
}
.sidebar .nav-link {
color: rgba(255, 255, 255, 0.85);
padding: 0.75rem 1.25rem;
border-radius: 0.375rem;
margin: 0.125rem 0.5rem;
font-size: 0.9rem;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
background: rgba(255, 255, 255, 0.15);
color: #fff;
}
.sidebar .nav-link .bi {
width: 1.25rem;
margin-right: 0.5rem;
}
.sidebar-brand {
padding: 1.25rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.sidebar-brand h5 {
color: #fff;
margin: 0;
font-weight: 700;
letter-spacing: 0.5px;
}
.sidebar-brand small {
color: rgba(255, 255, 255, 0.6);
font-size: 0.75rem;
}
.main-content {
flex: 1;
min-width: 0;
background: #f5f7fb;
min-height: 100vh;
}
.page-header {
background: #fff;
border-bottom: 1px solid #e5e7eb;
padding: 1rem 1.5rem;
}
/* Status Badges */
.badge-draft { background-color: #6c757d; }
.badge-published { background-color: var(--mbip-success); }
.badge-closed { background-color: #495057; }
/* Dashboard Cards */
.stat-card {
border: none;
border-radius: 0.75rem;
transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card .stat-icon {
width: 52px;
height: 52px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.4rem;
}
/* Table styles */
.table-hover tbody tr:hover { background-color: #f0f4ff; }
/* Public / Peserta Pages */
.public-hero {
background: linear-gradient(135deg, var(--mbip-primary) 0%, #2563eb 100%);
color: #fff;
padding: 2rem 1.5rem 1.5rem;
}
.public-hero h4 { font-weight: 700; }
.checkin-card {
border-radius: 1rem;
border: none;
box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.btn-checkin {
padding: 0.875rem 1.5rem;
font-size: 1.05rem;
border-radius: 0.75rem;
font-weight: 600;
}
/* Rating stars */
.rating-group .form-check-inline { margin-right: 0.25rem; }
.rating-group .form-check-input:checked + .form-check-label {
color: #f0a500;
}
/* Certificate preview */
.cert-preview-wrapper {
position: relative;
display: inline-block;
border: 2px solid #dee2e6;
border-radius: 0.5rem;
overflow: hidden;
}
.cert-preview-wrapper img { max-width: 100%; display: block; }
.cert-overlay-point {
position: absolute;
background: rgba(255, 220, 0, 0.85);
border: 2px solid #f0a500;
border-radius: 4px;
padding: 2px 6px;
font-size: 11px;
font-weight: 600;
cursor: move;
white-space: nowrap;
user-select: none;
}
/* Responsive */
@media (max-width: 767.98px) {
.sidebar { display: none; }
.public-hero { padding: 1.5rem 1rem 1rem; }
}
/* Alert toast positioning */
.toast-container { z-index: 1090; }