<?php use function App\Core\{e, url}; $order = $order ?? []; ?>
<section class="payment-result-page" data-payment-status="<?= e((string) ($order['order_no'] ?? '')) ?>">
    <div class="container payment-result-card">
        <span class="payment-result-icon success">OK</span>
        <p class="eyebrow">Odeme tamamlandi</p>
        <h1>Aboneligin aktif</h1>
        <p><?= e((string) ($order['package_name'] ?? 'Paket')) ?> icin odeme basariyla alindi.</p>
        <dl>
            <div><dt>Siparis no</dt><dd><?= e((string) ($order['order_no'] ?? '-')) ?></dd></div>
            <div><dt>Tutar</dt><dd><?= e(number_format((float) ($order['gross_amount'] ?? 0), 2, ',', '.')) ?> <?= e((string) ($order['currency'] ?? 'TRY')) ?></dd></div>
            <div><dt>Durum</dt><dd><?= e((string) ($order['status'] ?? 'completed')) ?></dd></div>
        </dl>
        <a class="pill primary" href="<?= e(url('/studyo/abonelikler')) ?>">Aboneliklerime Git</a>
    </div>
</section>
