
<?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 echo $__env->make('dashboard.user.layouts.components.breadcrumbs', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

            </div>
        </div>

        <div class="row">
            <?php echo $__env->make('dashboard.user.components.menu', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

            <div class="col-12">
                <div class="card">
                    <div class="card-body">
                        <!-- Invoice Logo-->
                        <div class="d-flex align-items-start justify-content-between mb-4">
                            <div>

                            </div>
                            <div class="text-end">
                                <?php if($deposit->status): ?>
                                    <span class="badge bg-success-subtle text-success fs-12 mb-3">Confirmed</span>
                                <?php else: ?>
                                    <span class="badge bg-warning-subtle text-warning fs-12 mb-3">Pending</span>
                                <?php endif; ?>
                                <h3 class="m-0 fw-bolder fs-20">Deposit: #<?php echo e($deposit->reference_id); ?></h3>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-lg-6">
                                <div>
                                    <h5 class="fw-bold fs-14">Deposit Date:</h5>
                                    <h6 class="fs-14 text-muted"><?php echo e($deposit->created_at->format('d M Y')); ?></h6>
                                </div>
                            </div>

                            <div class="col-lg-6 text-end">
                                <?php if($deposit->method === 'bitcoin'): ?>
                                    <?php if($admin->btc_qr_code): ?>
                                        <img src="<?php echo e(asset($admin->btc_qr_code)); ?>" alt="Bitcoin QR Code"
                                            style="max-width: 200px;">
                                    <?php else: ?>
                                        <?php echo e($qrCode); ?>

                                    <?php endif; ?>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>

                    <div class="mt-4">
                        <div class="table-responsive">
                            <table class="table text-center table-nowrap align-middle mb-0">
                                <thead>
                                    <tr class="bg-light bg-opacity-50">
                                        <th class="text-start border-0" scope="col">Deposit Details</th>
                                        <th class="text-end border-0" scope="col">Amount</th>
                                    </tr>
                                </thead>
                                <tbody id="products-list">
                                    <tr>
                                        <td class="text-start">
                                            <div class="d-flex align-items-center gap-2">
                                                <iconify-icon
                                                    icon="<?php echo e($deposit->method === 'bitcoin' ? 'logos:bitcoin' : 'mdi:credit-card'); ?>"
                                                    class="fs-22"></iconify-icon>
                                                <div>
                                                    <span class="fw-medium"><?php echo e(ucfirst($deposit->method)); ?> Deposit</span>
                                                    <p class="text-muted mb-0">
                                                        <?php if($deposit->method === 'bitcoin'): ?>
                                                            Bitcoin Address: <?php echo e($deposit->wallet_address ?? 'N/A'); ?><br>
                                                            <?php if($deposit->proof): ?>
                                                                Proof: <a href="<?php echo e(asset($deposit->proof)); ?>"
                                                                    target="_blank">View</a>
                                                            <?php else: ?>
                                                                Proof: N/A
                                                            <?php endif; ?>
                                                        <?php else: ?>
                                                            Card Number: **** **** ****
                                                            <?php echo e(substr($deposit->card_number ?? '', -4)); ?><br>
                                                            Expiry: <?php echo e($deposit->card_expiry_date ?? 'N/A'); ?>

                                                        <?php endif; ?>
                                                    </p>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="text-end">
                                            <?php echo e(currency($deposit->user->currency)); ?><?php echo e(formatAmount($deposit->amount)); ?>

                                        </td>
                                    </tr>
                                </tbody>
                            </table><!--end table-->
                        </div>
                    </div>

                    <div class="card-body">
                        <div class="bg-body p-2 rounded-2 mt-4">
                            <p class="mb-0"><span class="fs-12 fw-bold text-uppercase">Note:</span>
                                <?php if($deposit->method === 'bitcoin'): ?>
                                    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 else: ?>
                                    The card payment is pending verification. Once confirmed, the deposit will be credited
                                    to your account within 1-2 business days.
                                <?php endif; ?>
                            </p>
                        </div>

                        <div class="mt-4">
                            <p class="mb-2 pb-2"><b>Thank you for your deposit!</b> We appreciate your trust in us and will
                                process your request promptly.</p>
                        </div>

                        <div class="d-flex flex-wrap gap-2">
                            <a href="<?php echo e(route('user.deposit.index')); ?>" class="btn btn-primary">Back</a>
                        </div>
                    </div> <!-- end card-body-->
                </div>
            </div>
        </div>

    </div>
<?php $__env->stopSection(); ?>

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