<?php $__env->startSection('title', isset($is_failed) && $is_failed ? 'Pembayaran Gagal' : 'Pembayaran Berhasil'); ?>
<?php $__env->startSection('content'); ?>
<main class="max-w-3xl mx-auto px-6 py-20 text-center">
    <div class="bg-white rounded-3xl border border-slate-200 p-12 shadow-sm inline-block w-full max-w-md">
        
        <?php if(isset($is_failed) && $is_failed): ?>
            <!-- ❌ TAMPILAN JIKA SESI EXPIRED / GAGAL -->
            <div class="w-24 h-24 bg-red-100 text-red-500 rounded-full flex items-center justify-center mx-auto mb-6">
                <!-- Ikon Silang (X) Menggunakan SVG Standar -->
                <svg class="w-12 h-12" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M6 18L18 6M6 6l12 12"></path>
                </svg>
            </div>
            <h2 class="text-3xl font-black mb-4 text-red-600">Sesi Kedaluwarsa!</h2>
            <p class="text-slate-500 mb-8 leading-relaxed">
                Mohon maaf, waktu pembayaran untuk pesanan <strong><?php echo e($transaction->order_id); ?></strong> telah habis (batas waktu 15 menit). 
                Stok tiket otomatis dilepas kembali ke sistem agar dapat dibeli oleh pengunjung lain.
            </p>
        <?php else: ?>
            <!-- ✅ TAMPILAN ASLI KAMU JIKA SUKSES -->
            <div class="w-24 h-24 bg-green-100 text-green-500 rounded-full flex items-center justify-center mx-auto mb-6">
                <svg class="w-12 h-12" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M5 13l4 4L19 7"></path>
                </svg>
            </div>
            <h2 class="text-3xl font-black mb-4">Terima Kasih!</h2>
            <p class="text-slate-500 mb-8 leading-relaxed">
                Pembayaran untuk pesanan <strong><?php echo e($transaction->order_id); ?></strong> sedang diproses atau telah berhasil. 
                E-Ticket akan dikirim ke email Anda (<strong><?php echo e($transaction->customer_email); ?></strong>) setelah pembayaran terkonfirmasi lunas.
            </p>
        <?php endif; ?>

        <a href="<?php echo e(route('home')); ?>" class="inline-block px-8 py-4 bg-indigo-600 text-white rounded-xl font-bold hover:bg-indigo-700 transition w-full">
            Kembali ke Beranda
        </a>
    </div>
</main>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\laragon\www\Eventamikom-3182\resources\views/checkout/success.blade.php ENDPATH**/ ?>