
<?php $__env->startSection('content'); ?>
    <div class="page-content">
        <div class="container-fluid">
            <div class="box-typical box-typical-padding">
                <div class="row">
                    <div class="col-md-4">
                        <div class="form-group">
                            <label>Name</label>
                            <input type="text" name="spl_name" id="spl_name" class="form-control" placeholder="Name" />
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="form-group">
                            <label>Contact</label>
                            <input type="text" name="spl_contact" id="spl_contact" class="form-control isnumber"
                                placeholder="Contact" />
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="form-group">
                            <label>Email</label>
                            <input type="text" name="spl_email" id="spl_email" class="form-control"
                                placeholder="Email" />
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label>Address</label>
                            <textarea class="form-control" name="spl_address" id="spl_address"></textarea>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label>Notes</label>
                            <textarea class="form-control" name="spl_notes" id="spl_notes"></textarea>
                        </div>
                    </div>
                    <div class="col-md-12">
                        <button type="button" id="btn-add-supplier" class="btn btn-success m-t-20">Add</button>
                        <span id="spl-msg"></span>
                    </div>
                </div>
            </div>
            <div class="box-typical box-typical-padding">
                <div class="row">
                    <div class="col-md-12">
                        <table id="supplierTable" class="table table-striped table-bordered dt-responsive nowrap"
                            cellspacing="0" width="100%">
                            <thead>
                                <tr>
                                    <th>Sno</th>
                                    <th>Supplier Name</th>
                                    <th>Supplier Contact</th>
                                    <th>Email</th>
                                    <th>Address</th>
                                    <th>Notes</th>
                                    <th>Action</th>
                                </tr>
                            </thead>
                            <tbody>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div><!--.container-fluid-->

        <div id="supplier-edit-modal" class="modal fade" role="dialog">
            <div class="modal-dialog modal-lg">
                <!-- Modal content-->
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="modal-close" data-dismiss="modal">
                            <i class="font-icon-close-2"></i>
                        </button>
                        <h4 class="modal-title">Edit Supplier</h4>
                    </div>
                    <div class="modal-body">
                        <div class="row">
                            <div class="col-md-4">
                                <input type="hidden" name="spl_id" id="e_spl_id">
                                <div class="form-group">
                                    <label>Name</label>
                                    <input type="text" name="spl_name" id="e_spl_name" class="form-control"
                                        placeholder="Name" />
                                </div>
                            </div>
                            <div class="col-md-4">
                                <div class="form-group">
                                    <label>Contact</label>
                                    <input type="text" name="spl_contact" id="e_spl_contact" class="form-control"
                                        placeholder="Contact" />
                                </div>
                            </div>
                            <div class="col-md-4">
                                <div class="form-group">
                                    <label>Email</label>
                                    <input type="text" name="spl_email" id="e_spl_email" class="form-control"
                                        placeholder="Email" />
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label>Address</label>
                                    <textarea class="form-control" name="spl_address" id="e_spl_address"></textarea>
                                </div>
                                <span id="e_spl-msg"></span>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label>Notes</label>
                                    <textarea class="form-control" name="spl_notes" id="e_spl_notes"></textarea>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                        <button type="button" id="btn-update-supplier"
                            class="btn btn-primary waves-effect waves-light">Save changes</button>
                    </div>
                </div>
            </div>
        </div>

        <!-- Invocies Modal -->
        <div id="supplier-invoices-modal" class="modal fade" role="dialog">
            <div class="modal-dialog modal-lg">
                <!-- Modal content-->
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="modal-close" data-dismiss="modal">
                            <i class="font-icon-close-2"></i>
                        </button>
                        <h4 class="modal-title">Invoices</h4>
                    </div>
                    <div class="modal-body" id="pinv-mbody">

                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    </div>
                </div>
            </div>
        </div>

        <!-- Payment Modal -->
        <div id="make-payment-modal" class="modal fade" role="dialog">
            <div class="modal-dialog modal-xl">
                <!-- Modal content-->
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="modal-close" data-dismiss="modal">
                            <i class="font-icon-close-2"></i>
                        </button>
                        <h4 class="modal-title">Invoice # : <span id="invoice_number"></span></h4>
                    </div>
                    <div class="modal-body">
                        <div class="row">
                            <div class="col-md-3">
                                <label> Payment Amount </label>
                                <input type="text" class="form-control isnumber" id="ptext">
                            </div>
                            <div class="col-md-3">
                                <label> Payment Method </label>
                                <select class="form-control" id="pbank">
                                    <option value="" selected> Select </option>
                                    <option value="cash"> Cash </option>
                                    <option value="cheque"> Cheque </option>
                                    <option value="card"> Card </option>
                                </select>
                            </div>
                            <div class="col-md-3">
                                <label> Document # </label>
                                <input type="text" class="form-control" id="pcheque">
                            </div>
                            <div class="col-md-2">
                                <label> Document Date</label>
                                <input type="text" class="form-control datepicker" id="pchequed">
                            </div>
                            <div class="col-md-1">
                                <button class="btn btn-danger btn-block" style="margin-top:22px;" id="btn-make-payment"> Add
                                </button>
                            </div>
                            <div class="col-md-12">
                                <table class="table sr mt-3">
                                    <thead>
                                        <tr>
                                            <th> Sno </th>
                                            <th> Amount </th>
                                            <th> Balance </th>
                                            <th> Date/Time </th>
                                            <th> Mode of Payment </th>
                                            <th> Document # </th>
                                            <th> Document Date </th>
                                            <th> Delete </th>
                                        </tr>
                                    </thead>
                                    <tbody id="payment-tbody">
    
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                        </div>
                    </div>
                </div>
            </div>
        </div><!--.page-content-->
    <?php $__env->stopSection(); ?>
    <?php $__env->startSection('customjs'); ?>
        <script src="<?php echo e(asset('custom_js/suppliers.js')); ?>"></script>
    <?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.template.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\Freelance\BigWishes\work\resources\views/admin/suppliers.blade.php ENDPATH**/ ?>