
<?php $__env->startSection('content'); ?>
    <div class="page-content">
        <div class="container-fluid">
            <header class="section-header pb-0">
                <div class="tbl">
                    <div class="tbl-row">
                        <div class="tbl-cell">
                            <h3>Stock Items</h3>
                        </div>
                    </div>
                </div>
            </header>
            <div class="box-typical box-typical-padding">
                <div class="row">
                    <div class="col-md-4">
                        <label class="form-label" for="stk_category">Category</label>
                        <select class="form-control" name="stk_category" id="stk_category">
                            <option value="" selected>Choose </option>
                            <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($cat->category_id); ?>"><?php echo e($cat->category_name); ?></option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                        </select>
                    </div>
                    <div class="col-md-4">
                        <label class="form-label">Barcode <a href="#" class="genbarcode">[Generate
                                Barcode]</a></label>
                        <input type="text" name="stk_barcode" id="stk_barcode" class="form-control"
                            placeholder="Barcode" />
                    </div>
                    <div class="col-md-4">
                        <label class="form-label">Name</label>
                        <input type="text" name="stk_name" id="stk_name" class="form-control" placeholder="Name" />
                    </div>
                    <div class="col-md-4 d-none">
                        <label class="form-label">Purchase Price</label>
                        <input type="text" name="stk_pprice" id="stk_pprice" class="form-control isnumber"
                            placeholder="Purchase Price" value="0" />
                    </div>
                    <div class="col-md-4 d-none">
                        <label class="form-label">Quantity</label>
                        <input type="text" name="stk_qty" id="stk_qty" class="form-control isnumber"
                            placeholder="Quantity" value="0" />
                    </div>
                    <div class="col-md-4">
                        <label class="form-label">Selling Price Branch 1</label>
                        <input type="text" name="stk_sprice_b1" id="stk_sprice_b1" class="form-control isnumber"
                            placeholder="Selling Price" />
                    </div>
                    <div class="col-md-4">
                        <label class="form-label">Selling Price Branch 2</label>
                        <input type="text" name="stk_sprice_b2" id="stk_sprice_b2" class="form-control isnumber"
                            placeholder="Selling Price" />
                    </div>
                    <div class="col-md-4">
                        <label class="form-label">Selling Price Branch 3</label>
                        <input type="text" name="stk_sprice_b3" id="stk_sprice_b3" class="form-control isnumber"
                            placeholder="Selling Price" />
                    </div>
                    <div class="col-md-4 d-none">
                        <label class="form-label">Notification Limit</label>
                        <input type="text" name="stk_notify" id="stk_notify" class="form-control isnumber"
                            placeholder="Notification Limit" value="0" />
                    </div>
                    <div class="col-md-12">
                        <label class="form-label">Notes</label>
                        <textarea class="form-control" name="stk_notes" id="stk_notes" style="height:150px;"></textarea>
                    </div>

                    <div class="col-md-8">
                        <button type="button" id="btn-add-stk-items" class="btn btn-success mt-20">Add</button>
                    </div>
                </div>
            </div>
            <div class="box-typical box-typical-padding">
                <div class="row">
                    <div class="col-md-12">
                        <div class="table-responsive">
                            <table id="stkItemsTable" class="table table-striped table-bordered dt-responsive nowrap"
                                style="width:100%;">
                                <thead>
                                    <tr>
                                        <th>Sno</th>
                                        <th>Category</th>
                                        <th>Barcode</th>
                                        <th>Name</th>
                                        <th>Last Purchase Price</th>
                                        <th>Selling Price Branch 1</th>
                                        <th>Selling Price Branch 2</th>
                                        <th>Selling Price Branch 3</th>
                                        <th>Quantity</th>
                                        <th>Notification Limit</th>
                                        <th>Notes</th>
                                        <th>Action</th>
                                    </tr>
                                </thead>
                                <tbody>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div><!--.container-fluid-->

        <div id="stk-item-edit-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
            aria-hidden="true">
            <div class="modal-dialog modal-xl">
                <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" id="myModalLabel">Edit</h4>
                    </div>
                    <div class="modal-body">
                        <div class="row">
                            <div class="form-group col-md-4">
                                <input type="hidden" name="stk_uid" id="e_stk_uid">
                                <label>Category</label>
                                <select class="form-control" name="stk_category" id="e_stk_category" disabled>
                                    <option value="" selected>Category </option>
                                    <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($cat->category_id); ?>"><?php echo e($cat->category_name); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                            <div class="form-group col-md-4">
                                <label>Barcode <a href="#" id="e_genbarcode">[Generate Barcode]</a></label>
                                <input type="text" name="stk_barcode" id="e_stk_barcode" class="form-control"
                                    placeholder="Barcode" />
                            </div>
                            <div class="form-group col-md-4">
                                <label>Name</label>
                                <input type="text" name="stk_name" id="e_stk_name" class="form-control"
                                    placeholder="Name" />
                            </div>
                            <div class="form-group col-md-2">
                                <label>Purchase Price</label>
                                <input type="text" name="stk_pprice" id="e_stk_pprice" class="form-control"
                                    placeholder="Purchase Price" disabled />
                            </div>
                            <div class="form-group col-md-2">
                                <label>Quantity</label>
                                <input type="text" name="stk_qty" id="e_stk_qty" class="form-control isnumber"
                                    placeholder="Quantity" disabled />
                            </div>
                            <div class="form-group col-md-2">
                                <label>Selling Price B1</label>
                                <input type="text" name="stk_sprice_b1" id="e_stk_sprice_b1"
                                    class="form-control isnumber" placeholder="Selling Price" />
                            </div>
                            <div class="form-group col-md-2">
                                <label>Selling Price B2</label>
                                <input type="text" name="stk_sprice_b2" id="e_stk_sprice_b2"
                                    class="form-control isnumber" placeholder="Selling Price" />
                            </div>
                            <div class="form-group col-md-2">
                                <label>Selling Price B3</label>
                                <input type="text" name="stk_sprice_b3" id="e_stk_sprice_b3"
                                    class="form-control isnumber" placeholder="Selling Price" />
                            </div>
                            <div class="form-group col-md-2">
                                <label>Notification Limit</label>
                                <input type="text" name="stk_notify" id="e_stk_notify" class="form-control isnumber"
                                    placeholder="Notification Limit" disabled />
                            </div>
                            <div class="form-group col-md-12">
                                <label>Notes</label>
                                <textarea class="form-control" name="stk_notes" id="e_stk_notes" style="height:80px;"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" id="btn-update-stk-items" class="btn btn-primary">Save Changes</button>
                        <button type="button" class="btn btn-default waves-effect" data-dismiss="modal">Close</button>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div>


    </div><!--.page-content-->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('customjs'); ?>
    <script src="<?php echo e(asset('custom_js/stock_items.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/stock_items.blade.php ENDPATH**/ ?>