/
home
/
wellcas2
/
public_html
/
Upload File
HOME
<?php $activePage = "services"; require_once 'config/helpers.php'; $id = isset($_GET['id']) ? (int)$_GET['id'] : 0; $svc = $id ? db_find($pdo, 'service', $id) : null; $pageTitle = $svc ? htmlspecialchars($svc['service_title']) . " | Wellcash Debt Collectors" : "Service Not Found | Wellcash Debt Collectors"; include 'template/header.php'; ?> <?php if ($svc): ?> <section class="page-hero"> <div class="container"> <div class="breadcrumb"> <a href="index.php">Home</a> <span>→</span> <a href="services.php">Services</a> <span>→</span> <span><?php echo htmlspecialchars($svc['service_title']); ?></span> </div> <h1><?php echo htmlspecialchars($svc['service_title']); ?></h1> <p><?php echo htmlspecialchars($svc['service_desc']); ?></p> </div> </section> <section class="section"> <div class="container"> <div style="max-width: 800px; margin: 0 auto;"> <div style="text-align:center; margin-bottom: 25px;"> <img src="<?php echo htmlspecialchars(upload_path($svc['ufile'])); ?>" alt="<?php echo htmlspecialchars($svc['service_title']); ?>" style="width: 70px; height: 70px; object-fit: contain;" onerror="this.onerror=null;this.src='https://placehold.co/70x70/E31C23/ffffff?text=%E2%80%A2';"> </div> <div style="color: #444; line-height: 1.8; font-size: 16px;"> <?php $paragraphs = preg_split('/\r?\n\r?\n|\r?\n/', trim($svc['service_detail'])); foreach ($paragraphs as $para) { $para = trim($para); if ($para === '') continue; echo '<p style="margin-bottom: 18px;">' . htmlspecialchars($para) . '</p>'; } ?> </div> <a href="contact.php" class="btn btn-red btn-pill" style="margin-top: 10px; display: inline-flex; align-items: center; gap: 8px;"> Enquire About This Service <i class="fa-solid fa-arrow-right"></i> </a> <a href="services.php" class="btn btn-outline btn-pill" style="margin-top: 10px; margin-left: 10px; display: inline-flex; align-items: center; gap: 8px;"> <i class="fa-solid fa-arrow-left-long"></i> All Services </a> </div> </div> </section> <?php else: ?> <section class="page-hero"> <div class="container"> <h1>Service Not <span class="text-red">Found</span></h1> <p>The service you're looking for doesn't exist or may have been removed.</p> </div> </section> <section class="section"> <div class="container" style="text-align:center;"> <a href="services.php" class="btn btn-red btn-pill">Back to Services</a> </div> </section> <?php endif; ?> <?php include 'template/footer.php'; ?>