<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Payment Status — <?php echo e(config('southend.app_name')); ?></title>
    <?php echo $__env->make('components.partials.theme-boot', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
    <?php echo app('Illuminate\Foundation\Vite')(['resources/css/app.css']); ?>
    <style>html, body { display: block; overflow: auto; min-height: 100vh; }</style>
</head>
<body class="auth-page">
    <div class="ambient-bg" aria-hidden="true"></div>
    <div class="auth-card">
        <h1 style="margin-bottom:8px; font-size:20px; font-weight:700;">Payment <?php echo e(ucfirst($payment->status)); ?></h1>
        <p style="color:var(--text2); margin-bottom:20px;">
            <?php if($payment->status === 'completed'): ?>
                Your payment has been confirmed and applied to the invoice.
            <?php elseif($payment->status === 'rejected'): ?>
                This payment request was rejected. Contact the bursar if you need assistance.
            <?php elseif($payment->gateway_status === 'success'): ?>
                Payment received from the gateway. Finance is finalising your receipt.
            <?php else: ?>
                Your payment request is being processed.
            <?php endif; ?>
        </p>
        <dl style="display:grid; grid-template-columns: 140px 1fr; gap:8px 16px; font-size:13px;">
            <dt style="color:var(--text2);">Reference</dt><dd><?php echo e($payment->payment_number); ?></dd>
            <dt style="color:var(--text2);">Amount</dt><dd><?php echo e(number_format($payment->amount, 2)); ?> <?php echo e(config('payments.default_currency')); ?></dd>
            <dt style="color:var(--text2);">Method</dt><dd><?php echo e(str_replace('_', ' ', ucfirst($payment->payment_method ?? $payment->gateway ?? 'manual'))); ?></dd>
            <?php if($invoice): ?>
                <dt style="color:var(--text2);">Invoice</dt><dd><?php echo e($invoice->invoice_number); ?></dd>
                <dt style="color:var(--text2);">Student</dt><dd><?php echo e($invoice->student?->full_name); ?></dd>
            <?php endif; ?>
        </dl>
        <?php if(auth()->guard()->check()): ?>
            <?php if(auth()->user()?->hasRole('Parent')): ?>
                <a href="<?php echo e(route('parent.fees.index', ['student_id' => $invoice?->student_id])); ?>" class="btn btn-primary" style="margin-top:20px;">Back to fees</a>
            <?php else: ?>
                <a href="<?php echo e(url('/')); ?>" class="btn btn-primary" style="margin-top:20px;">Home</a>
            <?php endif; ?>
        <?php else: ?>
            <a href="<?php echo e(route('login')); ?>" class="btn btn-primary" style="margin-top:20px;">Sign in to parent portal</a>
        <?php endif; ?>
    </div>
</body>
</html>
<?php /**PATH C:\laragon\www\southend\resources\views\payments\status.blade.php ENDPATH**/ ?>