
<?php $__env->startSection('content'); ?>
    <?php $__env->startPush('styles'); ?>
        <style>
            .header-card {
                background: linear-gradient(90deg, #232E51, #1E1F27);
                border-radius: 10px;
                color: #fff;
                padding: 20px;
                margin-bottom: 20px;
                position: relative;
            }

            .section-title {
                font-weight: bold;
                margin-bottom: 15px;
            }

            .info-card {
                /* background: #232E51; */
                /* background: #fff; */
                border: 1px solid #eaeaea;
                border-radius: 10px;
                padding: 20px;
                margin-bottom: 20px;
            }

            .feature-card {
                border-radius: 10px;
                padding: 20px;
                /* background: #232E51; */
                /* background: #fff; */
                text-align: center;
                border: 1px solid #eaeaea;
            }

            .feature-card i {
                font-size: 24px;
                margin-bottom: 10px;
            }
        </style>
    <?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([]); ?>

                    <form action="<?php echo e(route('user.card.store')); ?>" method="post">
                        <?php echo csrf_field(); ?>

                        <div class="container-fluid">

                            <!-- Page Title -->
                            <div class="d-flex justify-content-between align-items-center mb-3">
                                <div>
                                    <h3 class="fw-bold"><i class="fa-solid fa-credit-card me-2 text-primary"></i> Apply for
                                        Virtual Card
                                    </h3>
                                    <p class="text-muted mb-0">Get instant access to a virtual card for online payments</p>
                                </div>
                                <a href="<?php echo e(route('user.card.index')); ?>" class="btn btn-outline-secondary btn-sm"><i
                                        class="fa-solid fa-arrow-left me-1"></i> Back to
                                    Cards</a>
                            </div>

                            <!-- Header Banner -->
                            <div class="header-card">
                                <h4 class="fw-bold mb-2">Apply for a Virtual Card</h4>
                                <p class="mb-0">Get instant access to a virtual card for online payments and subscriptions
                                </p>
                            </div>

                            <!-- Card Details Section -->
                            <div class="info-card">
                                <h5 class="section-title"><i class="fa-solid fa-credit-card me-2 text-primary"></i> Card
                                    Details
                                </h5>

                                <!-- Card Type -->
                                <div class="mb-3">
                                    <label class="form-label fw-bold">Card Type</label>
                                    <div class="list-group">
                                        <label class="list-group-item d-flex align-items-center">
                                            <input class="form-check-input me-3 <?php $__errorArgs = ['card_type'];
$__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); ?>"
                                                type="radio" value="Visa" name="card_type" <?php if(old('card_type', 'Visa')): echo 'checked'; endif; ?>>
                                            <div>
                                                <div class="fw-bold">Visa <span class="badge bg-primary ms-2">VISA</span>
                                                </div>
                                                <small class="text-muted">Accepted worldwide, suitable for most online
                                                    purchases</small>
                                            </div>
                                        </label>
                                        <label class="list-group-item d-flex align-items-center">
                                            <input class="form-check-input me-3 <?php $__errorArgs = ['card_type'];
$__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); ?>"
                                                type="radio" value="Mastercard" name="card_type"
                                                <?php if(old('card_type', 'Mastercard')): echo 'checked'; endif; ?>>
                                            <div>
                                                <div class="fw-bold">Mastercard <span
                                                        class="badge bg-warning text-dark ms-2">MASTERCARD</span></div>
                                                <small class="text-muted">Global acceptance with enhanced security
                                                    features</small>
                                            </div>
                                        </label>
                                        <label class="list-group-item d-flex align-items-center">
                                            <input class="form-check-input me-3 <?php $__errorArgs = ['card_type'];
$__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); ?>"
                                                type="radio" value="American Express" name="card_type"
                                                <?php if(old('card_type', 'American Express')): echo 'checked'; endif; ?>>
                                            <div>
                                                <div class="fw-bold">American Express <span
                                                        class="badge bg-secondary ms-2">AMEX</span>
                                                </div>
                                                <small class="text-muted">Premium benefits and exclusive rewards
                                                    program</small>
                                            </div>
                                        </label>
                                    </div>
                                    <?php $__errorArgs = ['card_type'];
$__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"><?php echo e($message); ?></span>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>

                                <!-- Card Level & Currency -->
                                <div class="row g-3 mb-3">
                                    <div class="col-md-6">
                                        <label class="form-label fw-bold">Card Level <span
                                                class="text-danger">*</span></label>
                                        <select name="card_level"
                                            class="form-select <?php $__errorArgs = ['card_level'];
$__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); ?>">
                                            <option value="">Select Card Level</option>
                                            <?php $__currentLoopData = config('setting.cardLevels'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $cardLevel): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <option value="<?php echo e($key); ?>" <?php if(old('card_level') == $key): echo 'selected'; endif; ?>>
                                                    <?php echo e($cardLevel); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </select>
                                        <small class="text-muted">Different levels offer varied spending limits and
                                            features</small>
                                        <?php $__errorArgs = ['card_level'];
$__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"><?php echo e($message); ?></span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                    </div>
                                    <div class="col-md-6">
                                        <label class="form-label fw-bold">Currency</label>
                                        <select name="currency" class="form-select <?php $__errorArgs = ['currency'];
$__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); ?>">
                                            <option value="">Select Currency</option>
                                            <?php $__currentLoopData = config('setting.cardCurrencies'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $cardCurrency): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <option value="<?php echo e($key); ?>" <?php if(old('currency') == $key): echo 'selected'; endif; ?>>
                                                    <?php echo e($cardCurrency); ?>

                                                </option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </select>

                                        <?php $__errorArgs = ['currency'];
$__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"><?php echo e($message); ?></span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                    </div>
                                </div>

                                <!-- Daily Spending Limit -->
                                <div class="mb-3">
                                    <label class="form-label fw-bold">Daily Spending Limit</label>
                                    <div class="input-group">
                                        <span class="input-group-text"><?php echo e(currency($user->currency)); ?></span>
                                        <input type="number"
                                            class="form-control <?php $__errorArgs = ['daily_limit'];
$__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); ?>"
                                            name="daily_limit" value="<?php echo e(old('daily_limit', 100)); ?>">
                                        <span class="input-group-text"><?php echo e(currency($user->currency, 'code')); ?></span>

                                        <?php $__errorArgs = ['daily_limit'];
$__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"><?php echo e($message); ?></span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                    </div>
                                    <small class="text-muted">Limits: <?php echo e(currency($user->currency)); ?>100 -
                                        <?php echo e(currency($user->currency)); ?>5,000</small>
                                </div>
                            </div>

                            <!-- Billing Information -->
                            <div class="info-card">
                                <h5 class="section-title"><i class="fa-solid fa-file-invoice me-2 text-primary"></i> Billing
                                    Information
                                </h5>
                                <div class="mb-3">
                                    <label class="form-label fw-bold">Cardholder Name</label>
                                    <input type="text" name="card_holder_name"
                                        class="form-control <?php $__errorArgs = ['card_holder_name'];
$__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); ?>"
                                        placeholder="Enter name" value="<?php echo e(old('card_holder_name')); ?>">

                                    <?php $__errorArgs = ['card_holder_name'];
$__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"><?php echo e($message); ?></span>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>
                                <div class="mb-3">
                                    <label class="form-label fw-bold">Billing Address</label>
                                    <input type="text" name="billing_address"
                                        class="form-control <?php $__errorArgs = ['billing_address'];
$__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); ?>"
                                        placeholder="Enter address" value="<?php echo e(old('billing_address')); ?>">

                                    <?php $__errorArgs = ['billing_address'];
$__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"><?php echo e($message); ?></span>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>
                                <div class="row g-3 mb-3">
                                    <div class="col-md-6">
                                        <label class="form-label fw-bold">City</label>
                                        <input type="text" name="city"
                                            class="form-control <?php $__errorArgs = ['city'];
$__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); ?>"
                                            placeholder="Enter city" value="<?php echo e(old('city')); ?>">

                                        <?php $__errorArgs = ['city'];
$__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"><?php echo e($message); ?></span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                    </div>
                                    <div class="col-md-6">
                                        <label class="form-label fw-bold">ZIP / Postal Code</label>
                                        <input type="text" name="zip"
                                            class="form-control <?php $__errorArgs = ['zip'];
$__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); ?>"
                                            placeholder="Enter ZIP code" value="<?php echo e(old('zip')); ?>">

                                        <?php $__errorArgs = ['zip'];
$__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"><?php echo e($message); ?></span>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                    </div>
                                </div>

                                <!-- Terms -->
                                <div class="form-check mb-3">
                                    <input class="form-check-input <?php $__errorArgs = ['terms'];
$__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); ?>" name="terms"
                                        type="checkbox" id="terms">
                                    <label class="form-check-label fw-bold" for="terms">
                                        I agree to the Terms and Conditions
                                    </label>
                                    <small class="text-muted d-block">By checking this box, you agree to our virtual card
                                        terms,
                                        including
                                        fees, limits, and usage policies.</small>

                                    <?php $__errorArgs = ['terms'];
$__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"><?php echo e($message); ?></span>
                                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                </div>

                                <!-- Submit -->
                                <div class="d-flex justify-content-between">
                                    <button class="btn btn-primary w-100 me-2"><i
                                            class="fa-solid fa-paper-plane me-1"></i>
                                        Submit
                                        Application</button>
                                    <a href="<?php echo e(route('user.card.index')); ?>" class="btn btn-outline-secondary"><i
                                            class="fa-solid fa-arrow-left me-1"></i> Back to
                                        Cards</a>
                                </div>
                            </div>

                            <!-- Features Section -->
                            <div class="row g-3 mt-4">
                                <div class="col-md-4">
                                    <div class="feature-card">
                                        <i class="fa-solid fa-shield-halved text-success"></i>
                                        <h6 class="fw-bold">Secure</h6>
                                        <small class="text-muted">Bank-level security with real-time fraud
                                            monitoring.</small>
                                    </div>
                                </div>
                                <div class="col-md-4">
                                    <div class="feature-card">
                                        <i class="fa-solid fa-bolt text-primary"></i>
                                        <h6 class="fw-bold">Instant</h6>
                                        <small class="text-muted">Get your card instantly after approval for immediate
                                            use.</small>
                                    </div>
                                </div>
                                <div class="col-md-4">
                                    <div class="feature-card">
                                        <i class="fa-solid fa-sliders text-purple"></i>
                                        <h6 class="fw-bold">Control</h6>
                                        <small class="text-muted">Set spending limits and freeze cards anytime.</small>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>

                 <?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->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.0\resources\views/dashboard/user/card/create.blade.php ENDPATH**/ ?>