
<?php $__env->startSection('title', __('inventorymanagement::inventory.inventory')); ?>
<?php $__env->startSection('css'); ?>
    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.13.1/datatables.min.css"/>
    <link rel="stylesheet" type="text/css" href="<?php echo e(url('css/inventory.css'), false); ?>"/>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>

    <section class="content-header">
        <h1><?php echo app('translator')->get('inventorymanagement::inventory.stock_inventory'); ?></h1>
    </section>

    <section class="content">
        <div class="box box-primary">
            <div class="box-header text-center" style="background-color:#484848;color:#EDAF11;font-size: 30px;">
                <?php echo app('translator')->get("inventorymanagement::inventory.products_inventory"); ?>
            </div>
        </div>
        <div class="box-body">
            <div class="row">
                <div class="col-sm-8 col-sm-offset-2">
                    <div class="form-group">
                        <div class="input-group">
							<span class="input-group-addon">
								<i class="fa fa-search"></i>
							</span>
                            <?php echo Form::text('search_product', null, ['class' => 'form-control', 'id' => 'search_product_inventory', 'placeholder' => __('stock_adjustment.search_products'), 'enabled']); ?>

                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <input type="hidden" id="product_row_index" value="0">
                    <input type="hidden" id="total_amount" name="final_total" value="0">
                    <div class="table-responsive">

                    </div>
                </div>
                <div class="clearfix"></div>

            </div>
        </div>

        <table id="purchase_entry_table" class="display nowrap table table-bordered table-hover table-th-green" style="width:100%">
            <thead>
            <tr>
                <th  style="text-align: right"><?php echo app('translator')->get("inventorymanagement::inventory.product_name"); ?></th>
                <th  style="text-align: right"><?php echo app('translator')->get("inventorymanagement::inventory.product_barcode"); ?></th>
                <th  style="text-align: right"><?php echo app('translator')->get("inventorymanagement::inventory.current_amount"); ?></th>
                <th  style="text-align: right"><?php echo app('translator')->get("inventorymanagement::inventory.amount_after_inventory"); ?></th>
                <th  style="text-align: right"><?php echo app('translator')->get("inventorymanagement::inventory.amount_difference"); ?></th>
                <th  style="text-align: right"><?php echo app('translator')->get("inventorymanagement::inventory.options"); ?></th>

            </tr>
            </thead>
           <tbody>

          <?php echo $__env->make("inventorymanagement::partials.tableRowForListing" , [$inventories , $quantityProductsArray,$products], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
           </tbody>

        </table>
            <div class="bg-gray p-10 text-center"><button type="button" id="saveProducts" class="btn btn-danger">
                <?php echo app('translator')->get('inventorymanagement::inventory.save'); ?>
            </button></div>
    </section>

<?php $__env->stopSection(); ?>
<?php echo $__env->make("inventorymanagement::partials.modals.editProductInventoryModal", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->startSection('javascript'); ?>
    <script src="https://cdn.datatables.net/1.13.1/js/jquery.dataTables.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.2/moment.min.js"></script>
    <script src="https://cdn.datatables.net/datetime/1.2.0/js/dataTables.dateTime.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#example').DataTable({
                columnDefs: [
                    {
                        targets: [0],
                        orderData: [0, 1],
                    },
                    {
                        targets: [1],
                        orderData: [1, 0],
                    },
                    {
                        targets: [4],
                        orderData: [4, 0],
                    },
                ],
            });
        });
    </script>
    <script src="<?php echo e(asset('js/purchase.js?v=' . $asset_v), false); ?>"></script>

    <?php echo $__env->make('inventorymanagement::partials.mainscript', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

    <script src="<?php echo e(asset('js/vendor.js?v=' . $asset_v), false); ?>"></script>
    <script type="text/javascript">__page_leave_confirmation('#purchase_return_form');</script>
    

<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/gyannewsoftware/public_html/pos11_UltimatePOS65/Modules/InventoryManagement/Providers/../Resources/views/makeInventory.blade.php ENDPATH**/ ?>