<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Pesanan Berhasil Dibuat</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            font-family: 'Arial', sans-serif;
            background: linear-gradient(135deg, #000000 0%, #0a0a1f 100%);
        }
        .container {
            max-width: 600px;
            margin: 40px auto;
            background: rgba(17, 24, 39, 0.95);
            border: 2px solid rgba(34, 211, 238, 0.3);
            border-radius: 16px;
            overflow: hidden;
        }
        .header {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            padding: 30px;
            text-align: center;
        }
        .header h1 {
            margin: 0;
            color: #ffffff;
            font-size: 28px;
            font-weight: bold;
        }
        .content {
            padding: 30px;
            color: #e5e7eb;
        }
        .icon {
            text-align: center;
            font-size: 64px;
            margin: 20px 0;
        }
        .info-box {
            background: rgba(245, 158, 11, 0.1);
            border: 1px solid rgba(245, 158, 11, 0.3);
            border-radius: 12px;
            padding: 20px;
            margin: 20px 0;
        }
        .info-row {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        .info-row:last-child {
            border-bottom: none;
        }
        .label {
            min-width: 80px; /* Opsional: biar titik duanya sejajar lurus ke bawah */
            display: inline-block;
            margin-right: 8px; /* Ini yang ngatur jarak setelah titik dua */
            color: #9ca3af;
            font-size: 14px;
        }
        .value {
            color: #ffffff;
            font-weight: bold;
            font-size: 14px;
        }
        .status-box {
            background: rgba(245, 158, 11, 0.2);
            border: 2px solid rgba(245, 158, 11, 0.5);
            padding: 16px;
            border-radius: 8px;
            margin-top: 20px;
            text-align: center;
        }
        .status-text {
            color: #f59e0b;
            font-size: 18px;
            font-weight: bold;
        }
        .payment-btn {
            display: inline-block;
            background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
            color: white;
            padding: 16px 40px;
            text-decoration: none;
            border-radius: 12px;
            font-weight: bold;
            font-size: 16px;
            margin: 20px 0;
        }
        .footer {
            background: rgba(0, 0, 0, 0.3);
            padding: 20px;
            text-align: center;
            color: #9ca3af;
            font-size: 12px;
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- Header -->
        <div class="header">
            <h1>📝 PESANAN BERHASIL DIBUAT!</h1>
        </div>

        <!-- Content -->
        <div class="content">
            <div class="icon">📦</div>

            <p style="text-align: center; font-size: 18px;">
                Halo, <strong><?php echo e($transaction->customer_name); ?></strong>!
            </p>
            <p style="text-align: center;">
                Pesanan Anda telah berhasil dibuat. Silakan lakukan pembayaran untuk melanjutkan proses.
            </p>

            <!-- Order Details -->
            <div class="info-box">
                <div class="info-row">
                    <span class="label">Invoice: </span>
                    <span class="value"> <?php echo e($transaction->invoice_number); ?></span>
                </div>
                <div class="info-row">
                    <span class="label">Produk: </span>
                    <span class="value"> <?php echo e($transaction->product_name); ?></span>
                </div>
                <div class="info-row">
                    <span class="label">ID Akun: </span>
                    <span class="value"> <?php echo e($transaction->customer_data); ?></span>
                </div>
                <div class="info-row">
                    <span class="label">Total: </span>
                    <span class="value">Rp  <?php echo e(number_format($transaction->total_amount, 0, ',', '.')); ?></span>
                </div>
            </div>

            <!-- Status -->
            <div class="status-box">
                <div class="status-text">⏳ MENUNGGU PEMBAYARAN</div>
                <p style="margin: 10px 0 0 0; color: #9ca3af; font-size: 14px;">
                    Bayar sebelum: <?php echo e(\Carbon\Carbon::parse($transaction->expired_at)->format('d M Y, H:i')); ?> WIB
                </p>
            </div>

            <!-- Payment Button -->
            <?php if($transaction->checkout_url): ?>
            <div style="text-align: center; margin: 30px 0;">
                <a href="<?php echo e($transaction->checkout_url); ?>" class="payment-btn">
                    💳 BAYAR SEKARANG
                </a>
            </div>
            <?php endif; ?>

            <!-- Info -->
            <p style="margin-top: 30px; color: #9ca3af; font-size: 14px; text-align: center;">
                Link pembayaran berlaku hingga <?php echo e(\Carbon\Carbon::parse($transaction->expired_at)->diffForHumans()); ?>

            </p>
        </div>

        <!-- Footer -->
        <div class="footer">
            <p>Email ini dikirim otomatis, mohon tidak membalas.</p>
            <p>Jika ada kendala, hubungi CS kami.</p>
            <p style="margin-top: 10px;">© <?php echo e(date('Y')); ?> Ryll Store - All Rights Reserved</p>
        </div>
    </div>
</body>
</html><?php /**PATH /home/instinct/Documents/belajar/php/ryll-topup/resources/views/emails/order-created.blade.php ENDPATH**/ ?>