Linux spg1.cloudpowerdns.com 5.14.0-611.34.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 18 05:51:10 EST 2026 x86_64
LiteSpeed
Server IP : 176.9.63.151 & Your IP : 216.73.217.60
Domains :
Cant Read [ /etc/named.conf ]
User : fastear1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
fastear1 /
new.ads /
user /
Delete
Unzip
Name
Size
Permission
Date
Action
steps
[ DIR ]
drwxr-xr-x
2025-11-13 19:19
.htaccess
197
B
-r--r--r--
2026-04-01 03:43
application.php
15.46
KB
-rw-r--r--
2025-11-13 19:26
dashboard.php
17.55
KB
-rw-r--r--
2025-11-13 20:04
new-application.php
10.31
KB
-rw-r--r--
2025-11-13 22:10
payment.php
13.31
KB
-rw-r--r--
2025-11-13 21:38
payments.php
16.12
KB
-rw-r--r--
2025-11-13 19:27
profile.php
14.19
KB
-rw-r--r--
2025-11-13 21:56
wp-blog-header.php
2.74
KB
-r--r--r--
2026-04-01 03:43
wp-cron.php
2.74
KB
-rw-r--r--
2026-04-01 03:43
Save
Rename
<?php require_once '../config.php'; require_once '../database.php'; require_once '../libs/functions.php'; requireLogin(); $user_id = $_SESSION['user_id']; // Get user's transactions $transactions = $db->fetchAll(" SELECT t.*, a.vehicle_type, a.vehicle_number, a.vehicle_name FROM transactions t JOIN applications a ON t.application_id = a.id WHERE t.user_id = ? ORDER BY t.created_at DESC ", [$user_id]); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Payment History - <?php echo SITE_NAME; ?></title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet"> <link href="../assets/css/style.css" rel="stylesheet"> </head> <body> <!-- Navigation --> <nav class="navbar navbar-expand-lg navbar-light"> <div class="container"> <a class="navbar-brand" href="../index.php"> <i class="fas fa-car me-2"></i><?php echo SITE_NAME; ?> </a> <div class="navbar-nav ms-auto"> <a class="nav-link" href="dashboard.php"> <i class="fas fa-arrow-left me-1"></i>Back to Dashboard </a> </div> </div> </nav> <div class="container mt-4"> <!-- Page Header --> <div class="row mb-4"> <div class="col-12"> <div class="card border-0 shadow-sm"> <div class="card-header bg-info text-white"> <h4 class="mb-0"> <i class="fas fa-history me-2"></i>Payment History </h4> </div> <div class="card-body"> <p class="mb-0">View all your payment transactions and their status</p> </div> </div> </div> </div> <?php if (empty($transactions)): ?> <!-- No Transactions --> <div class="row"> <div class="col-12"> <div class="card border-0 shadow-sm"> <div class="card-body text-center py-5"> <i class="fas fa-receipt fa-4x text-muted mb-4"></i> <h5>No Payment History</h5> <p class="text-muted mb-4">You haven't made any payments yet.</p> <a href="dashboard.php" class="btn btn-primary"> <i class="fas fa-tachometer-alt me-2"></i>Go to Dashboard </a> </div> </div> </div> </div> <?php else: ?> <!-- Transactions List --> <div class="row"> <div class="col-12"> <div class="card border-0 shadow-sm"> <div class="card-body p-0"> <div class="table-responsive"> <table class="table table-hover mb-0"> <thead class="table-light"> <tr> <th>Transaction ID</th> <th>Vehicle Details</th> <th>Amount</th> <th>Payment Method</th> <th>Status</th> <th>Date</th> <th>Actions</th> </tr> </thead> <tbody> <?php foreach ($transactions as $transaction): ?> <tr> <td> <strong>#<?php echo str_pad($transaction['id'], 6, '0', STR_PAD_LEFT); ?></strong> <br><small class="text-muted"><?php echo htmlspecialchars($transaction['transaction_id']); ?></small> </td> <td> <div> <strong><?php echo htmlspecialchars($transaction['vehicle_name']); ?></strong> <br><small class="text-muted"> <?php echo htmlspecialchars($transaction['vehicle_type']); ?> - <?php echo htmlspecialchars($transaction['vehicle_number']); ?> </small> </div> </td> <td> <strong class="text-success">PKR <?php echo number_format($transaction['amount']); ?></strong> </td> <td> <span class="badge bg-secondary"> <?php echo htmlspecialchars($transaction['payment_method']); ?> </span> </td> <td> <span class="badge bg-<?php echo $transaction['status'] === 'confirmed' ? 'success' : ($transaction['status'] === 'rejected' ? 'danger' : 'warning'); ?>"> <?php echo ucfirst($transaction['status']); ?> </span> </td> <td> <small> <?php echo formatDateTime($transaction['created_at']); ?> </small> </td> <td> <button class="btn btn-sm btn-outline-primary" data-bs-toggle="modal" data-bs-target="#transactionModal<?php echo $transaction['id']; ?>"> <i class="fas fa-eye"></i> </button> </td> </tr> <?php endforeach; ?> </tbody> </table> </div> </div> </div> </div> </div> <!-- Transaction Detail Modals --> <?php foreach ($transactions as $transaction): ?> <div class="modal fade" id="transactionModal<?php echo $transaction['id']; ?>" tabindex="-1"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header bg-primary text-white"> <h5 class="modal-title"> <i class="fas fa-receipt me-2"></i>Transaction Details </h5> <button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button> </div> <div class="modal-body"> <div class="row"> <div class="col-md-6"> <h6>Transaction Information</h6> <table class="table table-borderless table-sm"> <tr> <td><strong>Transaction ID:</strong></td> <td>#<?php echo str_pad($transaction['id'], 6, '0', STR_PAD_LEFT); ?></td> </tr> <tr> <td><strong>Payment ID:</strong></td> <td><?php echo htmlspecialchars($transaction['transaction_id']); ?></td> </tr> <tr> <td><strong>Amount:</strong></td> <td><strong class="text-success">PKR <?php echo number_format($transaction['amount']); ?></strong></td> </tr> <tr> <td><strong>Payment Method:</strong></td> <td><?php echo htmlspecialchars($transaction['payment_method']); ?></td> </tr> <tr> <td><strong>Status:</strong></td> <td> <span class="badge bg-<?php echo $transaction['status'] === 'confirmed' ? 'success' : ($transaction['status'] === 'rejected' ? 'danger' : 'warning'); ?>"> <?php echo ucfirst($transaction['status']); ?> </span> </td> </tr> <tr> <td><strong>Date:</strong></td> <td><?php echo formatDateTime($transaction['created_at']); ?></td> </tr> </table> </div> <div class="col-md-6"> <h6>Vehicle Information</h6> <table class="table table-borderless table-sm"> <tr> <td><strong>Vehicle Type:</strong></td> <td><?php echo htmlspecialchars($transaction['vehicle_type']); ?></td> </tr> <tr> <td><strong>Vehicle Name:</strong></td> <td><?php echo htmlspecialchars($transaction['vehicle_name']); ?></td> </tr> <tr> <td><strong>Registration No:</strong></td> <td><?php echo htmlspecialchars($transaction['vehicle_number']); ?></td> </tr> </table> <?php if ($transaction['payment_proof']): ?> <h6>Payment Proof</h6> <img src="../uploads/documents/<?php echo htmlspecialchars($transaction['payment_proof']); ?>" alt="Payment Proof" class="img-fluid rounded shadow-sm"> <?php endif; ?> </div> </div> <?php if ($transaction['admin_notes']): ?> <div class="row mt-3"> <div class="col-12"> <div class="alert alert-info"> <h6><i class="fas fa-comment me-2"></i>Admin Notes</h6> <p class="mb-0"><?php echo htmlspecialchars($transaction['admin_notes']); ?></p> </div> </div> </div> <?php endif; ?> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> </div> </div> </div> </div> <?php endforeach; ?> <!-- Summary Card --> <div class="row mt-4"> <div class="col-12"> <div class="card border-0 shadow-sm"> <div class="card-header bg-light"> <h6 class="mb-0"><i class="fas fa-chart-bar me-2"></i>Payment Summary</h6> </div> <div class="card-body"> <div class="row text-center"> <div class="col-md-3"> <div class="border-end"> <div class="h4 text-primary"><?php echo count($transactions); ?></div> <small class="text-muted">Total Transactions</small> </div> </div> <div class="col-md-3"> <div class="border-end"> <div class="h4 text-warning"> <?php echo count(array_filter($transactions, function($t) { return $t['status'] === 'pending'; })); ?> </div> <small class="text-muted">Pending</small> </div> </div> <div class="col-md-3"> <div class="border-end"> <div class="h4 text-success"> <?php echo count(array_filter($transactions, function($t) { return $t['status'] === 'confirmed'; })); ?> </div> <small class="text-muted">Confirmed</small> </div> </div> <div class="col-md-3"> <div class="h4 text-info"> PKR <?php echo number_format(array_sum(array_column($transactions, 'amount'))); ?> </div> <small class="text-muted">Total Amount</small> </div> </div> </div> </div> </div> </div> <?php endif; ?> </div> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script> <script src="../assets/js/main.js"></script> </body> </html>