
<?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)) { $__componentOriginalb2c223f2cabdcb0c6da76bfac943142c = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalb2c223f2cabdcb0c6da76bfac943142c = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.admin.breadcrumbs','data' => ['breadcrumbs' => $breadcrumbs]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.admin.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($__attributesOriginalb2c223f2cabdcb0c6da76bfac943142c)): ?>
<?php $attributes = $__attributesOriginalb2c223f2cabdcb0c6da76bfac943142c; ?>
<?php unset($__attributesOriginalb2c223f2cabdcb0c6da76bfac943142c); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalb2c223f2cabdcb0c6da76bfac943142c)): ?>
<?php $component = $__componentOriginalb2c223f2cabdcb0c6da76bfac943142c; ?>
<?php unset($__componentOriginalb2c223f2cabdcb0c6da76bfac943142c); ?>
<?php endif; ?>
            </div>
        </div>

        <div class="row">
            <div class="col-lg-12">
                <?php if (isset($component)) { $__componentOriginal87dd96fabcb1ce9254eda7ff7199227b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal87dd96fabcb1ce9254eda7ff7199227b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.admin.card','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.admin.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([]); ?>
                    <?php $__env->slot('header'); ?>
                        Create New Verification Code
                    <?php $__env->endSlot(); ?>

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

                        <div class="row">
                            <?php if (isset($component)) { $__componentOriginal377af9bacdfb9429d949663393821085 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal377af9bacdfb9429d949663393821085 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.admin.form-input','data' => ['name' => 'name','label' => 'Name *','value' => ''.e(old('name')).'','class' => 'col-md-6 mb-3']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.admin.form-input'); ?>
<?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(['name' => 'name','label' => 'Name *','value' => ''.e(old('name')).'','class' => 'col-md-6 mb-3']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal377af9bacdfb9429d949663393821085)): ?>
<?php $attributes = $__attributesOriginal377af9bacdfb9429d949663393821085; ?>
<?php unset($__attributesOriginal377af9bacdfb9429d949663393821085); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal377af9bacdfb9429d949663393821085)): ?>
<?php $component = $__componentOriginal377af9bacdfb9429d949663393821085; ?>
<?php unset($__componentOriginal377af9bacdfb9429d949663393821085); ?>
<?php endif; ?>

                            <?php if (isset($component)) { $__componentOriginal377af9bacdfb9429d949663393821085 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal377af9bacdfb9429d949663393821085 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.admin.form-input','data' => ['name' => 'description','label' => 'Description','value' => ''.e(old('description')).'','formText' => 'What this code is all about','class' => 'col-md-6 mb-3']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.admin.form-input'); ?>
<?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(['name' => 'description','label' => 'Description','value' => ''.e(old('description')).'','formText' => 'What this code is all about','class' => 'col-md-6 mb-3']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal377af9bacdfb9429d949663393821085)): ?>
<?php $attributes = $__attributesOriginal377af9bacdfb9429d949663393821085; ?>
<?php unset($__attributesOriginal377af9bacdfb9429d949663393821085); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal377af9bacdfb9429d949663393821085)): ?>
<?php $component = $__componentOriginal377af9bacdfb9429d949663393821085; ?>
<?php unset($__componentOriginal377af9bacdfb9429d949663393821085); ?>
<?php endif; ?>

                            <?php if (isset($component)) { $__componentOriginal377af9bacdfb9429d949663393821085 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal377af9bacdfb9429d949663393821085 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.admin.form-input','data' => ['name' => 'length','label' => 'Length *','value' => ''.e(old('length', 7)).'','formText' => 'How long do you want this code to be when generated?','class' => 'col-md-6 mb-3']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.admin.form-input'); ?>
<?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(['name' => 'length','label' => 'Length *','value' => ''.e(old('length', 7)).'','formText' => 'How long do you want this code to be when generated?','class' => 'col-md-6 mb-3']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal377af9bacdfb9429d949663393821085)): ?>
<?php $attributes = $__attributesOriginal377af9bacdfb9429d949663393821085; ?>
<?php unset($__attributesOriginal377af9bacdfb9429d949663393821085); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal377af9bacdfb9429d949663393821085)): ?>
<?php $component = $__componentOriginal377af9bacdfb9429d949663393821085; ?>
<?php unset($__componentOriginal377af9bacdfb9429d949663393821085); ?>
<?php endif; ?>

                            <div class="col-md-6 mb-3">
                                <label for="nature_of_code" class="form-label">Nature of code *</label>
                                <select id="nature_of_code" name="nature_of_code"
                                    class="form-select <?php $__errorArgs = ['nature_of_code'];
$__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); ?>" required>
                                    <option value="alnum"
                                        <?php echo e(old('nature_of_code', 'alnum') === 'alnum' ? 'selected' : ''); ?>>Alphanumeric
                                    </option>
                                    <option value="numeric" <?php echo e(old('nature_of_code') === 'numeric' ? 'selected' : ''); ?>>
                                        Numeric</option>
                                </select>
                                <?php $__errorArgs = ['nature_of_code'];
$__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); ?>
                                <small class="form-text text-muted">
                                    Do you want this code to be a mixture of letters and numbers (alphanumeric) or just
                                    numbers (numeric)?
                                </small>
                            </div>

                            <div class="mb-3">
                                <label for="applicable_to" class="form-label">Applicable to user *</label>
                                <select id="applicable_to" name="applicable_to"
                                    class="form-select <?php $__errorArgs = ['applicable_to'];
$__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); ?>" required>
                                    <option value="All" <?php echo e(old('applicable_to', 'All') === 'All' ? 'selected' : ''); ?>>ALL
                                        USERS
                                    </option>
                                    <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($user->id); ?>"
                                            <?php echo e(old('applicable_to') == $user->id ? 'selected' : ''); ?>>
                                            <?php echo e($user->name . ' ' . $user->middle_name . ' ' . $user->last_name); ?>

                                        </option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                                <?php $__errorArgs = ['applicable_to'];
$__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>

                            <?php if (isset($component)) { $__componentOriginalc89c72acc5163ac02c8deb87bc5ee542 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc89c72acc5163ac02c8deb87bc5ee542 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.admin.submit-and-back-button','data' => ['href' => ''.e(route('admin.verification_code.index')).'','submit' => 'Save']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.admin.submit-and-back-button'); ?>
<?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(['href' => ''.e(route('admin.verification_code.index')).'','submit' => 'Save']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc89c72acc5163ac02c8deb87bc5ee542)): ?>
<?php $attributes = $__attributesOriginalc89c72acc5163ac02c8deb87bc5ee542; ?>
<?php unset($__attributesOriginalc89c72acc5163ac02c8deb87bc5ee542); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc89c72acc5163ac02c8deb87bc5ee542)): ?>
<?php $component = $__componentOriginalc89c72acc5163ac02c8deb87bc5ee542; ?>
<?php unset($__componentOriginalc89c72acc5163ac02c8deb87bc5ee542); ?>
<?php endif; ?>
                        </div>
                    </form>

                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal87dd96fabcb1ce9254eda7ff7199227b)): ?>
<?php $attributes = $__attributesOriginal87dd96fabcb1ce9254eda7ff7199227b; ?>
<?php unset($__attributesOriginal87dd96fabcb1ce9254eda7ff7199227b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal87dd96fabcb1ce9254eda7ff7199227b)): ?>
<?php $component = $__componentOriginal87dd96fabcb1ce9254eda7ff7199227b; ?>
<?php unset($__componentOriginal87dd96fabcb1ce9254eda7ff7199227b); ?>
<?php endif; ?>
            </div>
            <!-- end col -->
        </div>
        <!-- end row -->

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

<?php echo $__env->make('dashboard.admin.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/admin/verification_code/create.blade.php ENDPATH**/ ?>