File manager - Edit - /home/webapp69.cm.in.th/u69319090039/Shop39/database/app/Views/admin/sellers/index.php
Back
<h4 class="fw-bold mb-4"><i class="bi bi-shop me-2"></i>จัดการคำขอและอนุมัติร้านค้า</h4> <div class="card border-0 shadow-sm rounded-3"> <div class="table-responsive"> <table class="table table-hover align-middle mb-0"> <thead class="table-light"> <tr> <th class="ps-4">ชื่อร้านค้า</th> <th>เจ้าของร้าน</th> <th>เบอร์โทร</th> <th>PromptPay / Bank</th> <th>สถานะ</th> <th class="text-end pe-4">จัดการ</th> </tr> </thead> <tbody> <?php foreach ($sellers as $s): ?> <tr> <td class="ps-4 fw-bold text-primary"><?= Security::e($s['shop_name']) ?></td> <td> <div class="fw-bold"><?= Security::e($s['full_name']) ?></div> <div class="small text-muted"><?= Security::e($s['email']) ?></div> </td> <td><?= Security::e($s['phone']) ?></td> <td class="small"> <div>PromptPay: <?= Security::e($s['promptpay_number'] ?? '-') ?></div> <div>Bank: <?= Security::e($s['bank_account'] ?? '-') ?></div> </td> <td> <?php if ($s['status'] === 'approved') { $badge = 'bg-success'; } elseif ($s['status'] === 'rejected') { $badge = 'bg-danger'; } else { $badge = 'bg-warning text-dark'; } ?> <span class="badge <?= $badge ?> px-3 py-2 rounded-pill"><?= ucfirst($s['status']) ?></span> </td> <td class="text-end pe-4"> <?php if ($s['status'] === 'pending'): ?> <form action="<?= APP_URL ?>/admin/sellers/approve/<?= $s['id'] ?>" method="POST" class="d-inline"> <input type="hidden" name="csrf_token" value="<?= $csrf_token ?>"> <button type="submit" class="btn btn-success btn-sm rounded-pill px-3">อนุมัติ</button> </form> <form action="<?= APP_URL ?>/admin/sellers/reject/<?= $s['id'] ?>" method="POST" class="d-inline ms-1"> <input type="hidden" name="csrf_token" value="<?= $csrf_token ?>"> <button type="submit" class="btn btn-outline-danger btn-sm rounded-pill px-3">ปฏิเสธ</button> </form> <?php else: ?> <span class="text-muted small">ดำเนินการแล้ว</span> <?php endif; ?> </td> </tr> <?php endforeach; ?> </tbody> </table> </div> </div>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.24 |
proxy
|
phpinfo
|
Settings