<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">Pay Supplier</h5>
                <button type="button" class="btn-close add_list_btn border-0" 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="">
                                    <form class="row g-3 needs-validation" method="POST" action="<?php echo e(route('payment.pay-supplier-store')); ?>" enctype="multipart/form-data">
                                        <?php echo csrf_field(); ?>
                                        
                                        <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 class="form-label font-weight-bold">Supplier *</label>
                                            <select class="select2 supplier_id" id="supplier_id" name="supplier_id" required>
                                                <option selected value="">Select Supplier</option>
                                                <?php $__currentLoopData = $suppliers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $supplier): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <option value="<?php echo e($supplier->id); ?>"><?php echo e($supplier->name); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </select>
                                            <input type="hidden" name="account_type" value="Supplier">
                                            <div class="error"><?php echo e(($errors->has('account_type'))?$errors->first('account_type'):''); ?></div>
                                            <div class="error"><?php echo e(($errors->has('supplier_id'))?$errors->first('supplier_id'):''); ?></div>
                                        </div>

                                        
                                        <div class="mt-2 col-md-12 text-center" id="details">
                                            <strong>Total (<strong id="due_purchase"></strong>) Purchase Due : <span id="total_purchase_due"></span> TK </strong>
                                            <span id="id_hint"></span>
                                            <hr>
                                            <strong><span class="wb_text">Personal Balance : </span><span id="wallet_balance"></span> TK </strong>
                                            <span id="wb_hint"></span>
                                            <input type="hidden" name="purchase_due" class="purchase_due" value="">
                                            <input type="hidden" name="wallet_balance" class="wallet_balance" value="">
                                        </div>

                                        
                                        <div class="mt-2 col-md-6">
                                            <label class="form-label fw-bold">Wallet Type *</label>
                                            <select class="select2 wallet_type" name="wallet_type" id="wallet_type" required>
                                                <option selected value="">Select Wallet</option>
                                                    <option value="Due Adjust">Due Adjust</option>
                                                    <option value="Balance Adjust">Balance Adjust</option>
                                            </select>
                                            <div class="error"><?php echo e(($errors->has('wallet_type'))?$errors->first('wallet_type'):''); ?></div>
                                        </div>

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

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

                                        
                                        <div class="mt-2 col-md-6">
                                            <label class="form-label font-weight-bold">Bank Account *</label>
                                            <select class="select2" name="bank_id" required>
                                                <option selected value="">Select Account</option>
                                                <?php $__currentLoopData = $bank_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>

                                        
                                        <div class="mt-2 col-md-6">
                                            <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">
                                            <button class="btn save_btn float-right" type="submit">Save</button>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php /**PATH D:\laragon\www\new demo multi-bank\resources\views/backend/pages/payment/supplier_model.blade.php ENDPATH**/ ?>