<div class="modal fade" id="modal" tabindex="-1" aria-labelledby="paymentModalLabel"
    aria-hidden="true">
    <div class="modal-dialog modal-lg modal-dialog-centered">
        <div class="modal-content">

            <div class="modal-header">
                <h5 class="modal-title" id="paymentModalLabel">Add Transfer</h5>
                <button type="button" class="btn-close" data-dismiss="modal" aria-label="Close">
                    <i class="fa fa-times"></i>
                </button>
            </div>

            <div class="modal-body">
                <div class="row justify-content-center">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-body">
                                <div class="border rounded">
                                    <form class="row g-3 needs-validation" method="POST" action="<?php echo e(route('bank-transfer-store')); ?>" enctype="multipart/form-data">
                                        <?php echo csrf_field(); ?>
                                        
                                        <div class="mt-2 col-md-6">
                                            <label class="form-label fw-bold">From Account *</label>
                                            <select class="select2 from_bank_id" name="from_bank_id" id="from_bank_id" required>
                                                <option selected value="">Select Account</option>
                                                <?php $__currentLoopData = $all_accounts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $bank_account): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <option value="<?php echo e($bank_account->id); ?>">
                                                        <?php echo e($bank_account->bank_name); ?>

                                                    </option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </select>
                                            <div class="error"><b id="from_amount"></b></div>
                                            <input type="hidden" name="from_amount" class="from_amount">
                                            <div class="error"><?php echo e(($errors->has('from_bank_id'))?$errors->first('from_bank_id'):''); ?></div>
                                        </div>

                                        
                                        <div class="mt-2 col-md-6">
                                            <label class="form-label fw-bold">To Account *</label>
                                            <select class="select2 to_bank_id" name="to_bank_id" id="to_bank_id" required>
                                                <option selected value="">Select Account</option>
                                            </select>
                                            <div class="error"><b id="to_amount"></b></div>
                                            <div class="error"><?php echo e(($errors->has('to_bank_id'))?$errors->first('to_bank_id'):''); ?></div>
                                        </div>

                                        
                                        <div class="mt-2 col-md-6">
                                            <label class="form-label font-weight-bold">Date</label>
                                            <input type="date" class="form-control" value="<?php echo e(date('Y-m-d')); ?>" name="date" required>
                                            <div class="error"><?php echo e(($errors->has('date'))?$errors->first('date'):''); ?></div>
                                        </div>

                                        
                                        <div class="mt-2 col-md-6">
                                            <label for="amount" class="form-label fw-bold">Transfer Amount *</label>
                                            <input type="number" class="form-control" min="1" step="any"
                                                placeholder="Enter Transfer Amount" name="transfer_amount">
                                            <div class="error"><?php echo e(($errors->has('transfer_amount'))?$errors->first('transfer_amount'):''); ?></div>
                                        </div>

                                        
                                        <div class="mt-2 col-md-12">
                                            <label for="details" class="form-label fw-bold">Note</label>
                                            <textarea name="note" class="form-control" rows="2"></textarea>
                                        </div>

                                        
                                        <div class="mt-2 col-md-12">
                                            <?php if(check_permission('bank-transfer-store')): ?>
                                                <button class="btn btn-primary float-right" type="submit">Save</button>
                                            <?php endif; ?>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php /**PATH D:\laragon\www\fast-pos\resources\views/backend/pages/account/transfer/model.blade.php ENDPATH**/ ?>