<!DOCTYPE html>
<html>
<head>
    <title>E-Ticket Anda</title>
</head>
<body style="font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px;">
    <div style="max-width: 500px; margin: auto; background: white; padding: 20px; rounded-corners: 10px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
        <h2 style="color: #10b981; text-align: center;">🎉 PEMBAYARAN BERHASIL! 🎉</h2>
        <p>Halo <strong><?php echo e($transaction->customer_name); ?></strong>,</p>
        <p>Terima kasih telah melakukan pembayaran. Berikut adalah detail tiket resmi Anda:</p>
        
        <table style="width: 100%; border-collapse: collapse; margin: 20px 0;">
            <tr>
                <td style="padding: 8px 0; color: #666;">Nama Event:</td>
                <td><strong><?php echo e($transaction->event->title); ?></strong></td>
            </tr>
            <tr>
                <td style="padding: 8px 0; color: #666;">Kode Transaksi:</td>
                <td><span style="font-family: monospace; background: #eee; padding: 2px 6px; border-radius: 4px;"><?php echo e($transaction->order_id); ?></span></td>
            </tr>
            <tr>
                <td style="padding: 8px 0; color: #666;">Total Bayar:</td>
                <td><strong>Rp <?php echo e(number_format($transaction->total_price, 0, ',', '.')); ?></strong></td>
            </tr>
        </table>

        <!-- Pembuatan QR Code Otomatis dari order_id -->
        <div style="text-align: center; margin: 30px 0;">
            <p style="margin-bottom: 10px; font-size: 12px; color: #888;">Tunjukkan QR Code ini ke Panitia Pintu Masuk:</p>
            <?php echo QrCode::size(200)->generate($transaction->order_id); ?>

        </div>

        <p style="font-size: 12px; color: #999; text-align: center;">Sampai jumpa di lokasi acara!</p>
    </div>
</body>
</html><?php /**PATH D:\laragon\www\Eventamikom-3182\resources\views/emails/ticket.blade.php ENDPATH**/ ?>