
<?php $__env->startSection('content'); ?>
    <?php $__env->startPush('styles'); ?>
        <?php echo $__env->make('dashboard.user.partials.deposit_style', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
    <?php $__env->stopPush(); ?>
    <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">
                <?php if (isset($component)) { $__componentOriginal66cb34fa521ca32c539059e04f66064d = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal66cb34fa521ca32c539059e04f66064d = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.user.card','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.user.card'); ?>
<?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([]); ?>

                    <div class="">
                        <div class="d-flex justify-content-between align-items-center mb-4">
                            <h3>Deposit Funds</h3>
                            <a href="<?php echo e(route('user.deposit.history')); ?>" class="btn btn-outline-secondary btn-sm"> <i
                                    class="fa-solid fa-history me-1"></i> Deposit History</a>
                        </div>

                        <!-- Deposit Form -->
                        <form action="<?php echo e(route('user.deposit.store')); ?>" method="POST">
                            <?php echo csrf_field(); ?>

                            <div class="card shadow-sm">

                                <div class="text-center">
                                    <h4>Fund Your Account</h4>
                                    <p class="mb-0">Choose your preferred deposit method and amount</p>
                                </div>

                                <div class="card-body">
                                    <!-- Deposit Methods -->
                                    <div class="row g-3 mb-4" id="deposit-methods">
                                        <input type="hidden" name="method" id="selectedMethod" value="Credit Card">
                                        <div class="col-md-3">
                                            <div class="deposit-method active" data-method="Credit Card">
                                                <i class="bi bi-credit-card fs-3 d-block mb-2 text-primary"></i>
                                                Credit Card
                                            </div>
                                        </div>
                                        <div class="col-md-3">
                                            <div class="deposit-method" data-method="Bank Transfer">
                                                <i class="bi bi-bank fs-3 d-block mb-2 text-primary"></i>
                                                Bank Transfer
                                            </div>
                                        </div>
                                        <div class="col-md-3">
                                            <div class="deposit-method" data-method="Bitcoin">
                                                <i class="bi bi-currency-bitcoin fs-3 d-block mb-2 text-warning"></i>
                                                Bitcoin
                                            </div>
                                        </div>
                                        <div class="col-md-3">
                                            <div class="deposit-method" data-method="PayPal">
                                                <i class="bi bi-paypal fs-3 d-block mb-2 text-primary"></i>
                                                PayPal
                                            </div>
                                        </div>

                                        <?php $__errorArgs = ['method'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <p class="mt-1 text-sm text-red-600"><?php echo e($message); ?></p>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                    </div>

                                    <!-- Deposit Amount -->
                                    <div class="mb-4">
                                        <label for="amount" class="form-label fw-semibold">Deposit Amount</label>
                                        <div class="input-group mb-3">
                                            <span class="input-group-text"><?php echo e(currency($user->currency)); ?></span>
                                            <input type="number" class="form-control <?php $__errorArgs = ['amount'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>"
                                                id="amount" name="amount" value="<?php echo e(old('amount', '0.00')); ?>"
                                                min="1" required>

                                            <?php $__errorArgs = ['amount'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                <span class="invalid-feedback" role="alert">
                                                    <strong><?php echo e($message); ?></strong>
                                                </span>
                                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                        </div>
                                        <div class="d-flex gap-2 flex-wrap">
                                            <button type="button"
                                                class="btn btn-outline-secondary quick-amount">100</button>
                                            <button type="button"
                                                class="btn btn-outline-secondary quick-amount">500</button>
                                            <button type="button"
                                                class="btn btn-outline-secondary quick-amount">1000</button>
                                            <button type="button"
                                                class="btn btn-outline-secondary quick-amount">5000</button>
                                            <button type="button"
                                                class="btn btn-outline-secondary quick-amount">10000</button>
                                        </div>
                                    </div>

                                    <!-- Buttons -->
                                    <div class="d-flex justify-content-between">
                                        <a href="<?php echo e(route('user.dashboard')); ?>" class="btn btn-outline-secondary"> <i
                                                class="fa-solid fa-arrow-left me-1"></i> Back to Dashboard</a>
                                        <button type="submit" class="btn btn-primary"> <i
                                                class="fa-solid fa-credit-card me-1"></i> Continue to Deposit</button>
                                    </div>
                                </div>
                            </div>
                        </form>

                        <!-- Secure Info -->
                        <div class="secure-box mt-3">
                            <i class="bi bi-shield-lock"></i>
                            All deposits are processed through secure payment channels. Your financial information is never
                            stored on our
                            servers.
                        </div>
                    </div>
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal66cb34fa521ca32c539059e04f66064d)): ?>
<?php $attributes = $__attributesOriginal66cb34fa521ca32c539059e04f66064d; ?>
<?php unset($__attributesOriginal66cb34fa521ca32c539059e04f66064d); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal66cb34fa521ca32c539059e04f66064d)): ?>
<?php $component = $__componentOriginal66cb34fa521ca32c539059e04f66064d; ?>
<?php unset($__componentOriginal66cb34fa521ca32c539059e04f66064d); ?>
<?php endif; ?>
            </div>
        </div>
    </div>

    <?php $__env->startPush('scripts'); ?>
        <?php echo $__env->make('dashboard.user.partials.deposit_script', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
    <?php $__env->stopPush(); ?>
<?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.2\resources\views/dashboard/user/deposit/index.blade.php ENDPATH**/ ?>