first
This commit is contained in:
25
public/.htaccess
Normal file
25
public/.htaccess
Normal file
@@ -0,0 +1,25 @@
|
||||
<IfModule mod_rewrite.c>
|
||||
<IfModule mod_negotiation.c>
|
||||
Options -MultiViews -Indexes
|
||||
</IfModule>
|
||||
|
||||
RewriteEngine On
|
||||
|
||||
# Handle Authorization Header
|
||||
RewriteCond %{HTTP:Authorization} .
|
||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||
|
||||
# Handle X-XSRF-Token Header
|
||||
RewriteCond %{HTTP:x-xsrf-token} .
|
||||
RewriteRule .* - [E=HTTP_X_XSRF_TOKEN:%{HTTP:X-XSRF-Token}]
|
||||
|
||||
# Redirect Trailing Slashes If Not A Folder...
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_URI} (.+)/$
|
||||
RewriteRule ^ %1 [L,R=301]
|
||||
|
||||
# Send Requests To Front Controller...
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^ index.php [L]
|
||||
</IfModule>
|
||||
137
public/css/koipb.css
Normal file
137
public/css/koipb.css
Normal file
@@ -0,0 +1,137 @@
|
||||
:root {
|
||||
--koipb-teal: #0a8f9c;
|
||||
--koipb-teal-dark: #086e78;
|
||||
--koipb-teal-light: #1bb6c4;
|
||||
--koipb-cyan: #14b8c8;
|
||||
--koipb-dark: #2b3036;
|
||||
--koipb-dark-2: #1c2024;
|
||||
--koipb-gold: #e0a91b;
|
||||
--koipb-green: #1e9e5a;
|
||||
--koipb-red: #c1272d;
|
||||
--koipb-bg: #f4f7f8;
|
||||
}
|
||||
|
||||
* { -webkit-tap-highlight-color: transparent; }
|
||||
body {
|
||||
background: var(--koipb-bg);
|
||||
font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
color: #23282d;
|
||||
}
|
||||
|
||||
/* ---------- Sidebar layout ---------- */
|
||||
.koipb-shell { display: flex; min-height: 100vh; }
|
||||
.koipb-sidebar {
|
||||
width: 250px; flex-shrink: 0;
|
||||
background: linear-gradient(180deg, var(--koipb-dark) 0%, var(--koipb-dark-2) 100%);
|
||||
color: #cfd6dc; position: fixed; top: 0; bottom: 0; left: 0; z-index: 1040;
|
||||
display: flex; flex-direction: column; transition: transform .25s ease;
|
||||
}
|
||||
.koipb-sidebar .brand {
|
||||
padding: 18px 16px; display: flex; align-items: center; gap: 12px;
|
||||
border-bottom: 1px solid rgba(255,255,255,.08);
|
||||
}
|
||||
.koipb-sidebar .brand img { width: 46px; height: 46px; border-radius: 10px; background:#fff; object-fit: contain; padding:3px; }
|
||||
.koipb-sidebar .brand .t1 { font-weight: 700; color: #fff; font-size: 1rem; line-height: 1.1; }
|
||||
.koipb-sidebar .brand .t2 { font-size: .72rem; color: var(--koipb-teal-light); letter-spacing: .5px; }
|
||||
.koipb-nav { padding: 10px 8px; overflow-y: auto; flex: 1; }
|
||||
.koipb-nav .nav-section { font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; color: #6b7882; padding: 14px 12px 6px; }
|
||||
.koipb-nav a {
|
||||
display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px;
|
||||
color: #c2cbd2; text-decoration: none; font-size: .92rem; margin-bottom: 2px; transition: all .15s;
|
||||
}
|
||||
.koipb-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
|
||||
.koipb-nav a.active { background: var(--koipb-teal); color: #fff; box-shadow: 0 4px 12px rgba(10,143,156,.4); }
|
||||
.koipb-nav a .ico { width: 20px; text-align: center; }
|
||||
.koipb-sidebar .sb-foot { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.08); font-size:.8rem; }
|
||||
|
||||
.koipb-main { flex: 1; margin-left: 250px; min-width: 0; display: flex; flex-direction: column; }
|
||||
.koipb-topbar {
|
||||
background: #fff; border-bottom: 1px solid #e3e9ec; padding: 12px 22px;
|
||||
display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1030;
|
||||
}
|
||||
.koipb-topbar h1 { font-size: 1.15rem; font-weight: 700; margin: 0; color: var(--koipb-dark); }
|
||||
.koipb-content { padding: 22px; flex: 1; }
|
||||
|
||||
.koipb-burger { display: none; }
|
||||
|
||||
@media (max-width: 991px) {
|
||||
.koipb-sidebar { transform: translateX(-100%); }
|
||||
.koipb-sidebar.show { transform: translateX(0); }
|
||||
.koipb-main { margin-left: 0; }
|
||||
.koipb-burger { display: inline-flex; }
|
||||
.koipb-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1035; }
|
||||
}
|
||||
|
||||
/* ---------- Cards / stats ---------- */
|
||||
.card { border: none; border-radius: 14px; box-shadow: 0 2px 10px rgba(20,40,50,.06); }
|
||||
.stat-card { border-radius: 14px; padding: 18px 20px; color: #fff; position: relative; overflow: hidden; }
|
||||
.stat-card .label { font-size: .82rem; opacity: .92; font-weight: 500; }
|
||||
.stat-card .value { font-size: 2rem; font-weight: 800; line-height: 1.1; }
|
||||
.stat-card .ico { position: absolute; right: 14px; top: 12px; font-size: 2.4rem; opacity: .22; }
|
||||
.bg-teal { background: linear-gradient(135deg, var(--koipb-teal) 0%, var(--koipb-teal-dark) 100%); }
|
||||
.bg-dark2 { background: linear-gradient(135deg, #3a4149 0%, var(--koipb-dark-2) 100%); }
|
||||
.bg-green { background: linear-gradient(135deg, #25b366 0%, #16834a 100%); }
|
||||
.bg-gold { background: linear-gradient(135deg, #f0bb3a 0%, var(--koipb-gold) 100%); }
|
||||
.bg-red { background: linear-gradient(135deg, #d83b41 0%, var(--koipb-red) 100%); }
|
||||
.bg-cyan { background: linear-gradient(135deg, #1bc6d6 0%, var(--koipb-teal) 100%); }
|
||||
|
||||
.text-teal { color: var(--koipb-teal) !important; }
|
||||
.btn-teal { background: var(--koipb-teal); border-color: var(--koipb-teal); color: #fff; }
|
||||
.btn-teal:hover { background: var(--koipb-teal-dark); border-color: var(--koipb-teal-dark); color: #fff; }
|
||||
.btn-outline-teal { color: var(--koipb-teal); border-color: var(--koipb-teal); }
|
||||
.btn-outline-teal:hover { background: var(--koipb-teal); color: #fff; }
|
||||
|
||||
.badge-hadir { background: var(--koipb-green); }
|
||||
.badge-belum { background: #94a3b8; }
|
||||
|
||||
/* status pills */
|
||||
.pill { display:inline-block; padding: 3px 11px; border-radius: 999px; font-size: .76rem; font-weight: 600; }
|
||||
.pill-belum { background:#e6edf0; color:#516470; }
|
||||
.pill-sedang { background:#fff3cd; color:#8a6d00; }
|
||||
.pill-disahkan { background:#d6f4e2; color:#10713f; }
|
||||
.pill-redraw { background:#ffe1e1; color:#a01c22; }
|
||||
|
||||
/* ---------- Counter screen ---------- */
|
||||
.counter-search input {
|
||||
font-size: 1.35rem; padding: 18px 22px; border-radius: 14px; border: 2px solid #d4dde2;
|
||||
}
|
||||
.counter-search input:focus { border-color: var(--koipb-teal); box-shadow: 0 0 0 .25rem rgba(10,143,156,.18); }
|
||||
.result-card { border-left: 5px solid var(--koipb-teal); transition: transform .1s; }
|
||||
.result-card.hadir { border-left-color: var(--koipb-green); }
|
||||
|
||||
/* ---------- Login ---------- */
|
||||
.login-wrap { min-height: 100vh; display:flex; align-items:center; justify-content:center;
|
||||
background: linear-gradient(135deg, var(--koipb-teal-dark) 0%, var(--koipb-dark) 100%); padding: 20px; }
|
||||
.login-card { width: 100%; max-width: 420px; border-radius: 18px; overflow:hidden; }
|
||||
.login-card .head { background: #fff; padding: 28px 28px 6px; text-align:center; }
|
||||
.login-card .head img { width: 84px; height: 84px; object-fit: contain; }
|
||||
|
||||
/* ---------- Draw / Projector ---------- */
|
||||
.projector { background: radial-gradient(circle at 30% 20%, #0c3a42 0%, #071f24 70%); min-height: 100vh; color:#fff; }
|
||||
.draw-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 22px; }
|
||||
@media (max-width: 1100px){ .draw-grid { grid-template-columns: 1fr; } }
|
||||
.wheel-stage { display:flex; flex-direction:column; align-items:center; justify-content:center; }
|
||||
#wheelCanvas { max-width: 100%; height: auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,.5)); }
|
||||
.wheel-pointer { font-size: 2.4rem; color: var(--koipb-gold); margin-bottom: -14px; z-index:2; }
|
||||
.panel-result {
|
||||
background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
|
||||
border-radius: 20px; padding: 26px; min-height: 480px; display:flex; flex-direction:column;
|
||||
transition: background .4s, border-color .4s;
|
||||
}
|
||||
.panel-result.win { background: linear-gradient(160deg, rgba(30,158,90,.35), rgba(224,169,27,.28)); border-color: var(--koipb-gold); }
|
||||
.panel-result.cancel { background: linear-gradient(160deg, rgba(120,20,24,.55), rgba(40,44,48,.6)); border-color: #7a2226; }
|
||||
.winner-name { font-size: 2.8rem; font-weight: 800; line-height: 1.05; }
|
||||
.prize-title { font-size: 1.5rem; font-weight: 700; color: var(--koipb-gold); }
|
||||
.big-msg { font-size: 3rem; font-weight: 900; letter-spacing: 1px; }
|
||||
.btn-spin {
|
||||
font-size: 1.5rem; font-weight: 800; padding: 14px 50px; border-radius: 999px;
|
||||
background: linear-gradient(135deg, var(--koipb-gold), #c98a09); border:none; color:#1c1100;
|
||||
box-shadow: 0 8px 24px rgba(224,169,27,.45);
|
||||
}
|
||||
.btn-spin:disabled { opacity: .5; }
|
||||
.draw-topbar { display:flex; align-items:center; justify-content:space-between; padding: 14px 22px;
|
||||
background: rgba(0,0,0,.25); border-bottom:1px solid rgba(255,255,255,.08); }
|
||||
.draw-topbar img { height: 44px; background:#fff; border-radius:8px; padding:3px; }
|
||||
|
||||
table.table-koipb thead th { background: var(--koipb-dark); color:#fff; font-weight:600; font-size:.85rem; }
|
||||
table.table-koipb tbody td { vertical-align: middle; }
|
||||
0
public/favicon.ico
Normal file
0
public/favicon.ico
Normal file
BIN
public/images/logo-koipb.jpg
Normal file
BIN
public/images/logo-koipb.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
20
public/index.php
Normal file
20
public/index.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Foundation\Application;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
define('LARAVEL_START', microtime(true));
|
||||
|
||||
// Determine if the application is in maintenance mode...
|
||||
if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
|
||||
require $maintenance;
|
||||
}
|
||||
|
||||
// Register the Composer autoloader...
|
||||
require __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
// Bootstrap Laravel and handle the request...
|
||||
/** @var Application $app */
|
||||
$app = require_once __DIR__.'/../bootstrap/app.php';
|
||||
|
||||
$app->handleRequest(Request::capture());
|
||||
2
public/robots.txt
Normal file
2
public/robots.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow:
|
||||
6
public/samples/contoh-anggota.csv
Normal file
6
public/samples/contoh-anggota.csv
Normal file
@@ -0,0 +1,6 @@
|
||||
no_anggota,no_pekerja,no_kp,nama,jabatan,bahagian,telefon,status_aktif
|
||||
A00001,MBIP00001,850101-01-5523,Ahmad bin Ali,Kewangan,Unit A,012-3456789,aktif
|
||||
A00002,MBIP00002,880215-14-6644,Siti binti Yusof,Khidmat Pengurusan,Pentadbiran,013-2233445,aktif
|
||||
A00003,MBIP00003,790320-10-1122,Lim Chee Keong,Teknologi Maklumat,Operasi,014-9988776,aktif
|
||||
A00004,MBIP00004,910707-08-3344,Nurul Huda binti Razak,Perancangan,Unit B,011-22334455,aktif
|
||||
A00005,MBIP00005,830512-12-7788,Rajesh a/l Kumar,Kejuruteraan,Sokongan,019-8765432,tidak aktif
|
||||
|
7
public/samples/contoh-hadiah.csv
Normal file
7
public/samples/contoh-hadiah.csv
Normal file
@@ -0,0 +1,7 @@
|
||||
kod_hadiah,nama_hadiah,kategori,nilai_anggaran,susunan_cabutan,kuantiti
|
||||
H01,Cabutan Utama - Umrah,Utama,12000,1,1
|
||||
H02,Motosikal,Utama,6000,2,1
|
||||
H03,Smart TV 55 inci,Elektrik,3200,3,1
|
||||
H06,Telefon Pintar,Gajet,2200,4,2
|
||||
H09,Hamper Premium,Hamper,350,5,5
|
||||
H10,Baucar Tunai RM200,Baucar,200,6,5
|
||||
|
Reference in New Issue
Block a user