<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'components.user.layout','data' => ['title' => ' Make local transfer from your account']] + (isset($attributes) ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('user.layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => ' Make local transfer from your account']); ?>

    <div class="nk-block">
        <div class="row g-gs">
            <div class="col-12">
                <div class="card h-100">

                    <div class="card-inner card-title-group card-title border-bottom d-flex justify-content-between">
                        <div><h6 class="title">Local Transfer</h6></div>
                        <div><a href="<?php echo e(route('user.transfer.international')); ?>" class="btn btn-primary btn-sm" ><em class="icon ni ni-tranx-fill"></em>&nbsp;Int' Transfer</a></div>
                    </div>


                    <div class="card-inner">
                        <?php if(auth()->user()->status != ACTIVE_USER): ?>

                            <div class="alert alert-warning ff-base fw-medium">
                                <em class="icon ni ni-alert-circle"></em>
                                <?php echo e(__(config('settings.limited_user_message'))); ?>

                            </div>

                        <?php else: ?>
                            <form method="POST" class="form-validate is-alter" novalidate="novalidate" id="transferFormData">
                                <?php echo csrf_field(); ?>
                                <div class="form-group">
                                    <div class="text-info">
                                    <em class="icon ni ni-info"></em>
                                        Please ensure to fill this form correctly.
                                    </div>
                                </div>
                                <?php if($errors->any()): ?>
                                    <div class="alert alert-icon alert-danger" role="alert">
                                        <em class="icon ni ni-alert-circle"></em>
                                        <strong>Oops!</strong>. <?php echo e($errors->first()); ?>

                                    </div>
                                <?php endif; ?>
                                <div class="row g-gs">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label class="form-label" for="bank_name">Receiver's Bank Name</label>
                                            <div class="form-control-wrap">
                                                <input type="text" class="form-control" id="bank_name" name="bank_name" value="<?php echo e(old('bank_name')); ?>" required autofocus>
                                                <?php $__errorArgs = ['bank_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                    <span class="text-danger ff-italic" role="alert">
                                                        <strong><?php echo e($message); ?></strong>
                                                    </span>
                                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label class="form-label" for="receiver_name">Receiver Name</label>
                                            <div class="form-control-wrap">
                                                <input type="text" class="form-control" id="receiver_name" name="receiver_name" value="<?php echo e(old('receiver_name')); ?>" required>
                                                <?php $__errorArgs = ['receiver_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                    <span class="text-danger ff-italic" role="alert">
                                                        <strong><?php echo e($message); ?></strong>
                                                    </span>

                                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label class="form-label" for="receiver_account">Receiver's Account Number</label>
                                            <div class="form-control-wrap">
                                                <input
                                                    type="number"
                                                    class="form-control"
                                                    id="receiver_account"
                                                    name="receiver_account"
                                                    value="<?php echo e(old('receiver_account')); ?>"
                                                    required
                                                    minlength="10"
                                                >
                                                <?php $__errorArgs = ['receiver_account'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                    <span class="text-danger ff-italic" role="alert">
                                                        <strong><?php echo e($message); ?></strong>
                                                    </span>

                                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label class="form-label" for="option">Transfer Option</label>
                                            <div class="form-control-wrap">
                                                <select class="form-control form-select" id="transfer_type" name="transfer_type" required>
                                                    <option value="Local-transfer" selected>Local Transfer</option>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label class="form-label" for="sender_account">Sender's Account Number</label>
                                            <div class="form-control-wrap">
                                                <input type="text" class="form-control" id="sender_account" value="<?php echo e(auth()->user()->account->account_number); ?>" disabled>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label class="form-label" for="routing_number">Routing Transit Number (RTN)</label>
                                            <div class="form-control-wrap">
                                                <input
                                                    type="number"
                                                    class="form-control"
                                                    id="routing_number"
                                                    name="routing_number"
                                                    value="<?php echo e(old('routing_number')); ?>"
                                                    required
                                                    minlength="9"
                                                    maxlength="9"
                                                >
                                                <?php $__errorArgs = ['routing_number'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                    <span class="text-danger ff-italic" role="alert">
                                                        <strong><?php echo e($message); ?></strong>
                                                    </span>
                                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label class="form-label" for="amount">Amount to Transfer</label>
                                            <div class="form-control-wrap">
                                                <input
                                                    type="number"
                                                    class="form-control"
                                                    id="amount"
                                                    name="amount"
                                                    step="0.01"
                                                    value="<?php echo e(old('amount')); ?>"
                                                    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="text-danger ff-italic" role="alert">
                                                        <strong><?php echo e($message); ?></strong>
                                                    </span>
                                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label class="form-label" for="swift_code">Swift Code</label>
                                            <div class="form-control-wrap">
                                                <input type="text" class="form-control" id="swift_code" name="swift_code" value="<?php echo e(old('swift_code')); ?>" required>
                                                <?php $__errorArgs = ['swift_code'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                    <span class="text-danger ff-italic" role="alert">
                                                        <strong><?php echo e($message); ?></strong>
                                                    </span>
                                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label class="form-label" for="iban_code">Iban Code</label>
                                            <div class="form-control-wrap">
                                                <input type="text" class="form-control" id="iban_code" name="iban_code" value="<?php echo e(old('iban_code')); ?>" required>
                                                <?php $__errorArgs = ['iban_code'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                    <span class="text-danger ff-italic" role="alert">
                                                        <strong><?php echo e($message); ?></strong>
                                                    </span>
                                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label class="form-label" for="remark">Remark</label>
                                            <div class="form-control-wrap">
                                                <input type="text" class="form-control" id="remark" name="remark" value="<?php echo e(old('remark')); ?>" required>
                                                <?php $__errorArgs = ['remark'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                    <span class="text-danger ff-italic" role="alert">
                                                        <strong><?php echo e($message); ?></strong>
                                                    </span>
                                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="nk-pps-field form-action text-center">
                                        <div class="nk-pps-action">
                                            <button class="btn btn-block btn-primary clicked-button">
                                                <span>TRANSFER FUND</span>
                                                <span class="spinner-border spinner-border-sm hide clicked-button-spinner" style="display: none;" role="status" aria-hidden="true"></span>
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        <?php endif; ?>
                    </div>
                </div><!-- .card -->
            </div>
        </div>
    </div>
<?php echo $__env->make('user.modals.transfer_modals', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->startSection('page-level-js'); ?>
<script src="/assets/user/transfer.js?ver=<?php echo e(rand(1,999999)); ?>>"></script>
<?php $__env->stopSection(); ?>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
<?php /**PATH /home2/fivemill/secure.fivemillionmiles.net/resources/views/user/transfer/local-transfer.blade.php ENDPATH**/ ?>