<?php
session_start();
if(!isset($_SESSION['user'])){
    header("Location: index.php");
    exit;
}
?>
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<title>Pembayaran QRIS</title>
<style>
body{
    font-family:Arial, sans-serif;
    background:#f4f6f9;
    margin:0;
}
.container{
    width:70%;
    margin:40px auto;
}
.box{
    background:white;
    padding:30px;
    border-radius:14px;
    box-shadow:0 4px 10px rgba(0,0,0,0.08);
    text-align:center;
}
.qr-img{
    width:280px;
    height:280px;
    object-fit:contain;
    border:1px solid #ddd;
    border-radius:12px;
    padding:10px;
    background:#fff;
}
.btn{
    display:inline-block;
    margin-top:20px;
    padding:10px 18px;
    color:white;
    text-decoration:none;
    border-radius:8px;
    font-weight:bold;
}
.pay{
    background:#28a745;
}
.back{
    background:#007bff;
    margin-left:10px;
}
</style>
</head>
<body>

<div class="container">
    <div class="box">
        <h2>📱 Scan QRIS Pembayaran</h2>
        <p>Silakan scan QR berikut untuk melakukan pembayaran</p>

        <img src="images/qr.png" alt="QRIS" class="qr-img">

        <br>

        <a href="upload_bukti.php" class="btn pay">✅ Saya Sudah Bayar</a>
        <a href="pembayaran.php" class="btn back">⬅️ Kembali</a>
    </div>
</div>

</body>
</html>