gdc_cmod/app/Views/admin/index.php
mikael-zakaria 77f15bfc94 first commit
2025-11-11 09:14:25 +07:00

231 lines
13 KiB
PHP

<?php
$today = date('Y-m-d');
$date1 = $_GET['date1'] ?? $today;
$date2 = $_GET['date2'] ?? $today;
?>
<?= $this->extend('_layouts/main.php') ?>
<?= $this->section('title') ?>
<title>Admin Glenlis</title>
<?= $this->endSection() ?>
<?= $this->section('content') ?>
<div class="container-fluid px-5">
<div class="row">
<div class="col col-12 mt-3">
<div class="accordion" id="accordionPanelsStayOpenExample">
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse"
data-bs-target="#panelsStayOpen-collapseOne" aria-expanded="false"
aria-controls="panelsStayOpen-collapseOne">
🔎 Search Form
</button>
</h2>
<div id="panelsStayOpen-collapseOne" class="accordion-collapse collapse show">
<div class="accordion-body">
<form method="GET" class="p-1" action='<?= base_url('api/dashboard') ?>'>
<div class="row align-items-center g-2">
<div class="col-auto fw-semibold text-muted">
Date :
</div>
<div class="col-auto">
<input type="date" class="form-control form-control-sm" name="date1"
value="<?php echo $date1; ?>" />
</div>
<div class="col-auto">-</div>
<div class="col-auto">
<input type="date" class="form-control form-control-sm" name="date2"
value="<?php echo $date2; ?>" />
</div>
<div class="col-auto">
<button type="submit" class="btn btn-sm btn-primary px-3">LIST</button>
</div>
<div class="col-auto">
<button type="button" class="btn btn-sm btn-outline-dark px-3"
onclick="window.location.href='/';">
RESET
</button>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#panelsStayOpen-collapseTwo" aria-expanded="false"
aria-controls="panelsStayOpen-collapseTwo">
☰ Filter Form
</button>
</h2>
<div id="panelsStayOpen-collapseTwo" class="accordion-collapse collapse">
<div class="accordion-body">
<form class="p-1">
<!-- Baris 1: Name & Reff -->
<div class="row mb-2">
<div class="col-md-6 d-flex align-items-center mb-2 mb-md-0">
<label class="col-3 col-form-label-sm text-muted fw-semibold">Name :</label>
<input type="text" class="form-control form-control-sm" id="col2_filter"
data-column="2" />
</div>
<div class="col-md-6 d-flex align-items-center">
<label class="col-3 col-form-label-sm text-muted fw-semibold">Reff :</label>
<input type="text" class="form-control form-control-sm" id="col5_filter"
data-column="5" />
</div>
</div>
<!-- Baris 2: Test & Doctor -->
<div class="row mb-2">
<div class="col-md-6 d-flex align-items-center mb-2 mb-md-0">
<label class="col-3 col-form-label-sm text-muted fw-semibold">Test :</label>
<input type="text" class="form-control form-control-sm" id="col7_filter"
data-column="7" />
</div>
<div class="col-md-6 d-flex align-items-center">
<label class="col-3 col-form-label-sm text-muted fw-semibold">Doctor :</label>
<input type="text" class="form-control form-control-sm" id="col6_filter"
data-column="6" />
</div>
</div>
<!-- Baris 3: Exc & Send To -->
<div class="row mb-3">
<div class="col-md-6 d-flex align-items-center mb-2 mb-md-0">
<label class="col-3 col-form-label-sm text-muted fw-semibold">Exc :</label>
<input type="text" class="form-control form-control-sm" id="exc" />
</div>
<div class="col-md-6 d-flex align-items-center">
<label class="col-3 col-form-label-sm text-muted fw-semibold">Send to :</label>
<input type="text" class="form-control form-control-sm" id="col8_filter"
data-column="8" />
</div>
</div>
<!-- Baris 4: Stat -->
<div class="row ">
<div class="col d-flex flex-wrap align-items-center">
<label class="col-auto col-form-label-sm text-muted fw-semibold me-2">Stat
:</label>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" name="excStat" value="1"
id="pending" />
<label class="form-check-label small" for="pending">Pending</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" name="excStat" value="2"
id="partialCollected" />
<label class="form-check-label small" for="partialCollected">Partial
Collected</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" name="excStat" value="3"
id="collected" />
<label class="form-check-label small" for="collected">Collected</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" name="excStat" value="4"
id="partialReceived" />
<label class="form-check-label small" for="partialReceived">Partial
Received</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" name="excStat" value="5"
id="received" />
<label class="form-check-label small" for="received">Received</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" name="excStat" value="6"
id="incomplete" />
<label class="form-check-label small" for="incomplete">Incomplete</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" name="excStat" value="7"
id="pendingVerified" />
<label class="form-check-label small" for="pendingVerified">Pending
(Verified)</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" name="excStat" value="8"
id="final" />
<label class="form-check-label small" for="final">Final</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" name="excStat" value="9"
id="finalVerified" />
<label class="form-check-label small" for="finalVerified">Final
(Verified)</label>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="col mt-3">
<div class="table-responsive">
<table id="datatables" class="table table-striped table-bordered align-middle">
<thead class="table-primary">
<tr>
<th>S</th>
<th>Order Datetime</th>
<th>Patient Name</th>
<th>No Lab</th>
<th>No Register</th>
<th style='width:10%;'>Reff</th>
<th>Doctor</th>
<th style='width:10%;'>Tests</th>
<th style='width:5%;'>Result To</th>
<th style='width:5%;'></th>
<th style='width:10%;'></th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>2025-10-25 11:25</td>
<td>TEGUH PUTRA SIE, MR</td>
<td>5102723628</td>
<td>01251002841</td>
<td>PT. PRUDENTIAL LIFE ASSURANCE</td>
<td>✶ HERNI SUPRAPTI, Dr</td>
<td>
(DL), (DBIL), (IBIL), (SGOT), (SGPT), (ALP), (GGT), (ALB), (GLOBU),
(CHOL), (TG), (HDL), (LDL), (GLUP), (HBA1C), (UL)
</td>
<td>C/W</td>
<td>
<a href="#" class="text-primary">result</a><br>
<a href="#" class="text-danger">pdf</a>
</td>
<td>
<input type="checkbox" name="val"> val<br>
<input type="checkbox" name="val"> Pending<br>
<input type="checkbox" name="hardcopy"> Hardcopy
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?= $this->endSection() ?>
<?= $this->section('script') ?>
<?= $this->endSection() ?>