File manager - Edit - /home/webapp69.cm.in.th/u69319090039/Shop39/database/app/Views/admin/stores/deleted.php
Back
<div class="d-flex justify-content-between align-items-center mb-4"> <h4 class="fw-bold m-0"><i class="bi bi-trash3 text-danger me-2"></i>ร้านค้าที่ถูกลบ (Soft Deleted)</h4> <a href="<?= APP_URL ?>/admin/stores" class="btn btn-outline-primary btn-sm rounded-pill"><i class="bi bi-arrow-left me-1"></i>กลับหน้ารายการร้านค้า</a> </div> <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 class="text-center">จำนวนคำสั่งซื้อ</th> <th>วันที่ลบ</th> <th class="text-end pe-4">การจัดการ</th> </tr> </thead> <tbody> <?php if (empty($stores)): ?> <tr> <td colspan="5" class="text-center py-4 text-muted">ไม่พบข้อมูลร้านค้าที่ถูกลบ</td> </tr> <?php endif; ?> <?php foreach ($stores as $s): ?> <tr> <td class="ps-4"> <div class="d-flex align-items-center"> <img src="<?= APP_URL ?>/public/uploads/<?= Security::e($s['logo'] ?? 'default-shop-logo.png') ?>" alt="logo" class="rounded-circle me-2" style="width: 40px; height: 40px; object-fit: cover; border: 1px solid #dee2e6;"> <div> <div class="fw-bold text-dark"><?= Security::e($s['shop_name']) ?></div> <div class="small text-muted"><?= Security::e($s['slug']) ?></div> </div> </div> </td> <td> <div class="fw-semibold"><?= Security::e($s['full_name']) ?></div> <div class="small text-muted"><?= Security::e($s['email']) ?></div> </td> <td class="text-center fw-bold"><?= number_format($s['order_count']) ?> รายการ</td> <td><?= date('d/m/Y H:i', strtotime($s['deleted_at'])) ?></td> <td class="text-end pe-4"> <div class="btn-group"> <form action="<?= APP_URL ?>/admin/stores/restore/<?= $s['id'] ?>" method="POST" class="d-inline" onsubmit="return confirm('ยืนยันที่จะกู้คืนร้านค้านี้หรือไม่?')"> <input type="hidden" name="csrf_token" value="<?= $csrf_token ?>"> <button type="submit" class="btn btn-sm btn-success rounded-pill px-3 me-1"><i class="bi bi-arrow-counterclockwise me-1"></i>กู้คืน</button> </form> </div> </td> </tr> <?php endforeach; ?> </tbody> </table> </div> </div>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.23 |
proxy
|
phpinfo
|
Settings