<?php $__env->startSection('content'); ?>
    <div class="page-container">

        <div class="page-title-head d-flex align-items-sm-center flex-sm-row flex-column gap-2">
            <div class="flex-grow-1">
                <h4 class="fs-18 fw-semibold mb-0"><?php echo e($title); ?></h4>
            </div>

            <div class="text-end">
                <?php if (isset($component)) { $__componentOriginalf249638ac7504c50bf0259c0cb71919d = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalf249638ac7504c50bf0259c0cb71919d = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.user.breadcrumbs','data' => ['breadcrumbs' => $breadcrumbs]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.user.breadcrumbs'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['breadcrumbs' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($breadcrumbs)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalf249638ac7504c50bf0259c0cb71919d)): ?>
<?php $attributes = $__attributesOriginalf249638ac7504c50bf0259c0cb71919d; ?>
<?php unset($__attributesOriginalf249638ac7504c50bf0259c0cb71919d); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalf249638ac7504c50bf0259c0cb71919d)): ?>
<?php $component = $__componentOriginalf249638ac7504c50bf0259c0cb71919d; ?>
<?php unset($__componentOriginalf249638ac7504c50bf0259c0cb71919d); ?>
<?php endif; ?>
            </div>
        </div>

        <div class="row">
            <div class="col-xl-12 col-lg-12">
                <div class="col-lg-10 mx-auto">
                    <div class="card border-0 shadow rounded-4 overflow-hidden">

                        
                        <div
                            class="card-header bg-light border-bottom px-4 px-md-5 py-3 d-flex justify-content-between align-items-center gap-2 flex-wrap">
                            <div>
                                <p class="text-uppercase text-muted fw-bold mb-0"
                                    style="font-size:.68rem;letter-spacing:.08em;">Deposit Reference</p>
                                <span class="fw-semibold"
                                    style="font-family:monospace;font-size:.85rem;">#<?php echo e($deposit->reference_id); ?></span>
                            </div>
                            <span class="<?php echo e($deposit->status->badge()); ?> rounded-pill px-3 py-2"
                                style="font-size:.72rem;letter-spacing:.04em;">
                                <?php echo e($deposit->status->label()); ?>

                            </span>
                        </div>

                        
                        <div class="text-center py-5 px-3 position-relative dps-hero">
                            <div class="dps-hero-glow"></div>
                            <div class="position-relative">
                                <p class="text-uppercase fw-bold mb-2 text-muted"
                                    style="font-size:.68rem;letter-spacing:.1em;">Deposit Amount</p>
                                <h2 class="display-5 fw-bold text-dark mb-1">
                                    <?php echo e(currency($deposit->user->currency)); ?><?php echo e(formatAmount($deposit->amount)); ?>

                                </h2>
                                <span
                                    class="badge bg-white border text-muted fw-semibold px-3 py-2 rounded-pill d-inline-flex align-items-center gap-1"
                                    style="font-size:.72rem;">
                                    <?php if($deposit->isBitcoinMethod()): ?>
                                        <i class="fa-brands fa-bitcoin"></i>
                                    <?php elseif($deposit->isCreditCardMethod()): ?>
                                        <i class="fa-brands fa-cc-visa"></i>
                                    <?php elseif($deposit->isPayPalMethod()): ?>
                                        <i class="fa-brands fa-paypal"></i>
                                    <?php elseif($deposit->isBankTransferMethod()): ?>
                                        <i class="fa-solid fa-building-columns"></i>
                                    <?php endif; ?>
                                    <?php echo e(ucfirst($deposit->method)); ?> Deposit
                                </span>
                            </div>
                        </div>

                        <div class="card-body px-4 px-md-5 py-4">

                            
                            <div class="row align-items-center mb-4 g-3">
                                <div class="col">
                                    <p class="text-uppercase text-muted fw-bold mb-1"
                                        style="font-size:.68rem;letter-spacing:.08em;">Deposit Date</p>
                                    <span class="fw-semibold"><?php echo e(formatDateTime($deposit->created_at)); ?></span>
                                </div>
                                <?php if($deposit->isBitcoinMethod()): ?>
                                    <div class="col-auto">
                                        <div class="border rounded-3 p-2 bg-light">
                                            <?php if($wallet->qr_code_path): ?>
                                                <img src="<?php echo e(asset($wallet->qr_code_path)); ?>" alt="Payment QR Code"
                                                    class="img-fluid rounded d-block" style="max-width:100px;">
                                            <?php else: ?>
                                                <img src="https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=<?php echo e($wallet->address); ?>?amount=<?php echo e($deposit->amount); ?>"
                                                    alt="Payment QR Code" class="img-fluid rounded d-block"
                                                    style="max-width:100px;">
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                <?php endif; ?>
                            </div>

                            
                            <p class="text-uppercase text-muted fw-bold mb-3 pb-2 border-bottom"
                                style="font-size:.68rem;letter-spacing:.1em;">
                                Payment Details
                            </p>

                            <div class="bg-light rounded-3 p-3 p-md-4 mb-4">
                                <div class="row g-0">

                                    <?php if($deposit->isBitcoinMethod()): ?>

                                        <div class="col-12 py-3 border-bottom">
                                            <p class="text-muted mb-1" style="font-size:.75rem;font-weight:500;">Bitcoin
                                                Address</p>
                                            <strong class="d-block text-break"
                                                style="font-family:monospace;font-size:.85rem;"><?php echo e($wallet->address ?? 'N/A'); ?></strong>
                                        </div>
                                        <div class="col-12 py-3">
                                            <p class="text-muted mb-1" style="font-size:.75rem;font-weight:500;">Payment
                                                Proof</p>
                                            <?php if($deposit->proof): ?>
                                                <a href="<?php echo e(asset($deposit->proof)); ?>" target="_blank"
                                                    class="btn btn-sm btn-outline-primary rounded-3 d-inline-flex align-items-center gap-1">
                                                    <i class="bi bi-file-earmark-image"></i> View Proof
                                                </a>
                                            <?php else: ?>
                                                <strong class="text-muted">N/A</strong>
                                            <?php endif; ?>
                                        </div>
                                    <?php elseif($deposit->isCreditCardMethod()): ?>
                                        <div class="col-12 col-sm-6 py-3 pe-sm-4 border-bottom">
                                            <p class="text-muted mb-1" style="font-size:.75rem;font-weight:500;">Card Number
                                            </p>
                                            <strong style="font-family:monospace;">**** **** ****
                                                <?php echo e(substr($deposit->card_number ?? '', -4)); ?></strong>
                                        </div>
                                        <div class="col-12 col-sm-6 py-3 ps-sm-4 border-bottom dps-border-start-sm">
                                            <p class="text-muted mb-1" style="font-size:.75rem;font-weight:500;">Expiry Date
                                            </p>
                                            <strong><?php echo e($deposit->card_expiry_date ?? 'N/A'); ?></strong>
                                        </div>
                                    <?php elseif($deposit->isPayPalMethod()): ?>
                                        <div class="col-12 col-sm-6 py-3 pe-sm-4 border-bottom">
                                            <p class="text-muted mb-1" style="font-size:.75rem;font-weight:500;">PayPal
                                                Email</p>
                                            <strong><?php echo e($setting->paypal_email ?? 'N/A'); ?></strong>
                                        </div>
                                        <div class="col-12 col-sm-6 py-3 ps-sm-4 border-bottom dps-border-start-sm">
                                            <p class="text-muted mb-1" style="font-size:.75rem;font-weight:500;">Payment
                                                Proof</p>
                                            <?php if($deposit->proof): ?>
                                                <a href="<?php echo e(asset($deposit->proof)); ?>" target="_blank"
                                                    class="btn btn-sm btn-outline-primary rounded-3 d-inline-flex align-items-center gap-1">
                                                    <i class="bi bi-file-earmark-image"></i> View Proof
                                                </a>
                                            <?php else: ?>
                                                <strong class="text-muted">N/A</strong>
                                            <?php endif; ?>
                                        </div>
                                    <?php elseif($deposit->isBankTransferMethod()): ?>
                                        <div class="col-12 col-sm-6 py-3 pe-sm-4 border-bottom">
                                            <p class="text-muted mb-1" style="font-size:.75rem;font-weight:500;">Bank Name
                                            </p>
                                            <strong><?php echo e($setting->bank_name ?? 'N/A'); ?></strong>
                                        </div>
                                        <div class="col-12 col-sm-6 py-3 ps-sm-4 border-bottom dps-border-start-sm">
                                            <p class="text-muted mb-1" style="font-size:.75rem;font-weight:500;">Account
                                                Name</p>
                                            <strong><?php echo e($setting->account_name ?? 'N/A'); ?></strong>
                                        </div>
                                        <div class="col-12 col-sm-6 py-3 pe-sm-4 border-bottom">
                                            <p class="text-muted mb-1" style="font-size:.75rem;font-weight:500;">Account
                                                Number</p>
                                            <strong
                                                style="font-family:monospace;"><?php echo e($setting->account_number ?? 'N/A'); ?></strong>
                                        </div>

                                        <?php if($setting->routing_number || $setting->bank_swift_code || $setting->bank_iban): ?>
                                            <div class="col-12 col-sm-6 py-3 ps-sm-4 border-bottom dps-border-start-sm">
                                                <?php if($setting->routing_number): ?>
                                                    <p class="text-muted mb-1" style="font-size:.75rem;font-weight:500;">
                                                        Routing Number</p>
                                                    <strong class="d-block mb-2"
                                                        style="font-family:monospace;"><?php echo e($setting->routing_number); ?></strong>
                                                <?php endif; ?>
                                                <?php if($setting->bank_swift_code): ?>
                                                    <p class="text-muted mb-1" style="font-size:.75rem;font-weight:500;">
                                                        SWIFT Code</p>
                                                    <strong class="d-block mb-2"
                                                        style="font-family:monospace;"><?php echo e($setting->bank_swift_code); ?></strong>
                                                <?php endif; ?>
                                                <?php if($setting->bank_iban): ?>
                                                    <p class="text-muted mb-1" style="font-size:.75rem;font-weight:500;">
                                                        IBAN</p>
                                                    <strong class="d-block"
                                                        style="font-family:monospace;"><?php echo e($setting->bank_iban); ?></strong>
                                                <?php endif; ?>
                                            </div>
                                        <?php endif; ?>

                                        <div class="col-12 py-3">
                                            <p class="text-muted mb-1" style="font-size:.75rem;font-weight:500;">Payment
                                                Proof</p>
                                            <?php if($deposit->proof): ?>
                                                <a href="<?php echo e(asset($deposit->proof)); ?>" target="_blank"
                                                    class="btn btn-sm btn-outline-primary rounded-3 d-inline-flex align-items-center gap-1">
                                                    <i class="bi bi-file-earmark-image"></i> View Proof
                                                </a>
                                            <?php else: ?>
                                                <strong class="text-muted">N/A</strong>
                                            <?php endif; ?>
                                        </div>

                                    <?php endif; ?>

                                </div>
                            </div>

                            
                            <?php if($deposit->isPending()): ?>
                                <div
                                    class="rounded-3 border border-warning-subtle bg-warning-subtle px-4 py-3 mb-4 d-flex align-items-start gap-3">
                                    <i class="bi bi-exclamation-triangle-fill text-warning mt-1 flex-shrink-0"></i>
                                    <p class="mb-0 small text-warning-emphasis">
                                        <strong class="text-uppercase"
                                            style="font-size:.68rem;letter-spacing:.06em;">Note:</strong>
                                        <?php if($deposit->isBitcoinMethod()): ?>
                                            Please ensure the Bitcoin payment is sent to the provided wallet address.
                                            Verification may take up to 1–3 hours after the transaction is confirmed on the
                                            blockchain.
                                        <?php elseif($deposit->isCreditCardMethod()): ?>
                                            The card payment is pending verification. Once confirmed, the deposit will be
                                            credited to your account within 1–2 business days.
                                        <?php elseif($deposit->isPayPalMethod()): ?>
                                            The PayPal payment is pending verification. Once confirmed, the deposit will be
                                            credited to your account within 1–2 business days.
                                        <?php elseif($deposit->isBankTransferMethod()): ?>
                                            The bank transfer is pending verification. Once confirmed, the deposit will be
                                            credited to your account within 1–2 business days.
                                        <?php endif; ?>
                                    </p>
                                </div>

                                <p class="text-muted small mb-4">
                                    <strong class="text-dark">Thank you for your deposit!</strong> We appreciate your trust
                                    in us and will process your request promptly.
                                </p>
                            <?php endif; ?>

                            
                            <div class="d-flex pt-3 border-top">
                                <a href="<?php echo e(route('user.deposit.history')); ?>"
                                    class="btn btn-primary d-inline-flex align-items-center gap-2 rounded-3">
                                    <i class="bi bi-arrow-left"></i> Back
                                </a>
                            </div>

                        </div>
                    </div>
                </div>
            </div>

            <style>
                /* Hero */
                .dps-hero {
                    /* background-color: #f7f8fa; */
                }

                .dps-hero-glow {
                    position: absolute;
                    inset: 0;
                    pointer-events: none;
                    background: radial-gradient(ellipse 70% 70% at 50% 0%, rgba(13, 110, 253, .07) 0%, transparent 70%);
                }

                /* Responsive left border for paired columns */
                @media (min-width: 576px) {
                    .dps-border-start-sm {
                        border-left: 1px solid #dee2e6 !important;
                    }
                }
            </style>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('dashboard.user.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\projects\online-banking-v7.3-seacoast-bank\resources\views/dashboard/user/deposit/show.blade.php ENDPATH**/ ?>