
<?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">
                <?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([]); ?>
                    <?php $__env->slot('header'); ?>
                        <i class="fa-solid fa-sack-dollar"></i> Loan Details
                    <?php $__env->endSlot(); ?>

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

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

                            <?php if (isset($component)) { $__componentOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.user.form-select','data' => ['name' => 'duration','label' => 'Duration (Months) *','class' => 'col-md-6 mb-3','value' => ''.e(old('duration')).'','type' => 'selectKeyValuePair','options' => config('setting.loanDurations')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.user.form-select'); ?>
<?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' => 'duration','label' => 'Duration (Months) *','class' => 'col-md-6 mb-3','value' => ''.e(old('duration')).'','type' => 'selectKeyValuePair','options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(config('setting.loanDurations'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94)): ?>
<?php $attributes = $__attributesOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94; ?>
<?php unset($__attributesOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94)): ?>
<?php $component = $__componentOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94; ?>
<?php unset($__componentOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94); ?>
<?php endif; ?>

                            <?php if (isset($component)) { $__componentOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.user.form-select','data' => ['name' => 'facility','label' => 'Loan/Credit Facility *','class' => 'col-md-12 mb-3','value' => ''.e(old('facility')).'','type' => 'select','options' => config('setting.creditFacilities')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.user.form-select'); ?>
<?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' => 'facility','label' => 'Loan/Credit Facility *','class' => 'col-md-12 mb-3','value' => ''.e(old('facility')).'','type' => 'select','options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(config('setting.creditFacilities'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94)): ?>
<?php $attributes = $__attributesOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94; ?>
<?php unset($__attributesOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94)): ?>
<?php $component = $__componentOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94; ?>
<?php unset($__componentOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94); ?>
<?php endif; ?>

                            <?php if (isset($component)) { $__componentOriginal1028b179d48d736fa9646b481387ec5f = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal1028b179d48d736fa9646b481387ec5f = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.user.form-input','data' => ['name' => 'purpose','label' => 'Purpose of Loan *','type' => 'textarea','placeholder' => 'Please describe the process of this loan....','class' => 'col-md-12 mb-3','value' => ''.e(old('purpose')).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.user.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' => 'purpose','label' => 'Purpose of Loan *','type' => 'textarea','placeholder' => 'Please describe the process of this loan....','class' => 'col-md-12 mb-3','value' => ''.e(old('purpose')).'']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal1028b179d48d736fa9646b481387ec5f)): ?>
<?php $attributes = $__attributesOriginal1028b179d48d736fa9646b481387ec5f; ?>
<?php unset($__attributesOriginal1028b179d48d736fa9646b481387ec5f); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal1028b179d48d736fa9646b481387ec5f)): ?>
<?php $component = $__componentOriginal1028b179d48d736fa9646b481387ec5f; ?>
<?php unset($__componentOriginal1028b179d48d736fa9646b481387ec5f); ?>
<?php endif; ?>

                            <?php if (isset($component)) { $__componentOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.user.form-select','data' => ['name' => 'monthly_income','label' => 'Monthly Net Income *','class' => 'col-md-12 mb-3','value' => ''.e(old('monthly_income')).'','type' => 'select','options' => config('setting.monthlyNetIncomes')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.user.form-select'); ?>
<?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' => 'monthly_income','label' => 'Monthly Net Income *','class' => 'col-md-12 mb-3','value' => ''.e(old('monthly_income')).'','type' => 'select','options' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(config('setting.monthlyNetIncomes'))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94)): ?>
<?php $attributes = $__attributesOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94; ?>
<?php unset($__attributesOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94)): ?>
<?php $component = $__componentOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94; ?>
<?php unset($__componentOriginal0d8b51fcd4a7550ec3ea27e6c1f9af94); ?>
<?php endif; ?>
                        </div>

                        <div class="card">
                            <div class="card-body border rounded p-3">
                                <div class="form-check">
                                    <input class="form-check-input <?php $__errorArgs = ['term_and_condition'];
$__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="checkbox" name="term_and_condition" value="1" id="agreeCheck">
                                    <label class="form-check-label fw-semibold" for="agreeCheck">
                                        I agree to the terms and conditions
                                    </label>

                                    <?php $__errorArgs = ['term_and_condition'];
$__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>
                                <p class="text-muted small mb-0 mt-1">
                                    By submitting this application, I confirm that all information provided is accurate and
                                    complete.
                                    I authorize <?php echo e(config('app.name')); ?> to verify my information and credit history.
                                </p>
                            </div>
                        </div>

                        <?php if (isset($component)) { $__componentOriginal3da7c2b1a70c514618cac6445fff8846 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3da7c2b1a70c514618cac6445fff8846 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.user.form-button','data' => ['class' => 'btn btn-primary','name' => 'Submit Loan Application']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard.user.form-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(['class' => 'btn btn-primary','name' => 'Submit Loan Application']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3da7c2b1a70c514618cac6445fff8846)): ?>
<?php $attributes = $__attributesOriginal3da7c2b1a70c514618cac6445fff8846; ?>
<?php unset($__attributesOriginal3da7c2b1a70c514618cac6445fff8846); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3da7c2b1a70c514618cac6445fff8846)): ?>
<?php $component = $__componentOriginal3da7c2b1a70c514618cac6445fff8846; ?>
<?php unset($__componentOriginal3da7c2b1a70c514618cac6445fff8846); ?>
<?php endif; ?>

                        <a href="<?php echo e(route('user.loan.index')); ?>" class="btn btn-danger float-end"> <i
                                class="fa-solid fa-xmark-circle me-1"></i> Cancel</a>

                    </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.2\resources\views/dashboard/user/loan/form.blade.php ENDPATH**/ ?>