<?php
if (isset($_GET['id'])) {
    $payment_id = $_GET['id'];
} else {
    echo "No payment ID provided.";
    exit;
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Select Receipt Format</title>
    <style>
    /* select_receipt_format.css */

body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-bottom: 20px;
    color: #333;
}

a {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

a:hover {
    background-color: #0056b3;
}
</style>
</head>
<body>
    <h1>Select Receipt Format</h1>
    <a href="view_receipt.php?id=<?php echo $payment_id; ?>&format=pos">POS Format</a>
    <a href="view_receipt.php?id=<?php echo $payment_id; ?>&format=a4">A4 Format</a>
</body>
</html>
