34853-vm/portal.php
2025-10-12 22:40:55 +00:00

27 lines
719 B
PHP

<?php
include 'header.php';
// Protect this page
if (!isset($_SESSION['customer_id'])) {
header('Location: login.php');
exit;
}
?>
<div class="container mt-5">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-body">
<h1 class="card-title">Welcome, <?php echo htmlspecialchars($_SESSION['customer_name']); ?>!</h1>
<p>This is your customer portal. You can view your account details and manage your services here.</p>
<a href="logout.php" class="btn btn-primary">Logout</a>
</div>
</div>
</div>
</div>
</div>
<?php include 'footer.php'; ?>