BLACKSITE
:
216.73.216.62
:
147.93.18.13 / vinyasaweddings.com
:
Linux srv667811 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
:
/
var
/
www
/
kds
/
views
/
admin
/
Upload File:
files >> /var/www/kds/views/admin/pricing-manage.php
<?php include 'views/admin/layout/header.php'; ?> <?php include 'views/admin/layout/Sidebar.php'; ?> <?php // Fetch services $stmt = $db->query("SELECT * FROM services ORDER BY id DESC"); $services = $stmt->fetchAll(PDO::FETCH_ASSOC); ?> <main class="main-content"> <div class="container-fluid px-4"> <div class="d-flex justify-content-between align-items-center mb-4"> <div> <h1 class="fw-bold mb-0">Services Management</h1> <p class="text-muted mb-0">Manage all your services in one place</p> </div> <a href="pricing-add" class="btn btn-primary"> <i class="fas fa-plus me-2"></i>Add New Service </a> </div> <div class="card shadow-sm border-0"> <div class="card-body p-0"> <div class="table-responsive rounded-3"> <table class="table table-hover mb-0"> <thead class="bg-light"> <tr> <th class="py-3 px-4 text-nowrap" ">#</th> <th class="py-3 px-4">Service Details</th> <th class="py-3 px-4 text-center"">Image</th> <th class="py-3 px-4 text-center" ">Status</th> <th class="py-3 px-4 text-center" ">Actions</th> </tr> </thead> <tbody> <?php if (count($services) > 0): ?> <?php foreach ($services as $index => $row): ?> <tr class="align-middle"> <td class="px-4 fw-semibold text-muted"><?= $index + 1 ?></td> <td class="px-4"> <h6 class="mb-1 fw-semibold"><?= htmlspecialchars($row['title']) ?></h6> </td> <td class="px-4 text-center"> <?php if (!empty($row['image'])): ?> <img src="<?= BASE_URL ?>/uploads/services/<?= htmlspecialchars($row['image']) ?>" alt="<?= htmlspecialchars($row['title']) ?>" class="img-thumbnail rounded" style="width: 80px; height: 60px; object-fit: contain;"> <?php else: ?> <span class="badge bg-light text-muted">No image</span> <?php endif; ?> </td> <td class="px-4 text-center"> <span class="badge rounded-pill py-2 px-3 bg-<?= $row['status'] === 'active' ? 'success' : 'secondary' ?>-subtle text-<?= $row['status'] === 'active' ? 'success' : 'secondary' ?>"> <i class="fas fa-circle me-1" style="font-size: 8px;"></i> <?= ucfirst($row['status']) ?> </span> </td> <td class="px-4 text-center"> <div class="d-flex justify-content-center gap-2"> <a href="pricing-add?edit=<?= $row['id'] ?>" class="btn btn-sm btn-outline-primary rounded-circle p-1" title="Edit"> <i class="fas fa-pencil-alt" style="width: 16px; height: 16px;"></i> </a> <button class="btn btn-sm btn-outline-danger rounded-circle p-1" title="Delete" onclick="confirmDelete(<?= $row['id'] ?>)"> <i class="fas fa-trash-alt" style="width: 16px; height: 16px;"></i> </button> <a href="#" class="btn btn-sm btn-outline-info rounded-circle p-1" title="View"> <i class="fas fa-eye" style="width: 16px; height: 16px;"></i> </a> </div> </td> </tr> <?php endforeach; ?> <?php else: ?> <tr> <td colspan="5" class="text-center py-4 text-muted"> <i class="fas fa-info-circle me-2"></i>No services found </td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div> </div> </main> <script> function confirmDelete(id) { if (confirm('Are you sure you want to delete this service?')) { window.location.href = 'delete_service.php?id=' + id; } } </script> <?php include 'views/admin/layout/footer.php'; ?>