
<?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-12">
                        <table class="table MyTable">
                <thead>
                  <tr>
                       <th> S.no </th>
                       <th> Category </th>
                       <th> Barcode </th>
                       <th> Item </th>
                       <th> Admin</th>
                        <?php $__currentLoopData = $branch_ids; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $branch): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <th><?php echo e($branch->branch_name); ?></th>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                       <th> Purchase Price </th>
                       <th> Sales Price</th>
                       <th>Percentage</th>
                  </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $stock_data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                         <tr>
                            <td><?php echo e($index + 1); ?></td>
                            <td><?php echo e($item['stk_category_name']); ?></td>
                            <td><?php echo e($item['stk_barcode']); ?></td>
                            <td><?php echo e($item['stk_name']); ?></td>
                            <td><?php echo e(str_replace(',','',number_format($item['stk_qty'],0))); ?></td>
                            <?php $__currentLoopData = $branch_ids; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $branch): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <td><?php echo e($item['branches_qty'][$branch->branch_id] ?? null); ?></td>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <td><?php echo e($item['stk_pprice']); ?></td>
                            <td><?php echo e($item['stk_sprice_b1']); ?></td>
                            <td><?php echo e($item['margin_percent']); ?>%</td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
                <tfoot>
                    <th>&nbsp;</th>
                    <th>&nbsp;</th>
                    <th>&nbsp;</th>
                    <th>&nbsp;</th>
                    <th>&nbsp;</th>
                    <th>&nbsp;</th>
                    <th>&nbsp;</th>
                    <th>&nbsp;</th>
                    <th>&nbsp;</th>
                    <th>&nbsp;</th>
                    <th>&nbsp;</th>
                </tfoot>
              </table>
                    </div>
                </div>
            </div><!--.container-fluid-->
        </div><!--.page-content-->
    <?php $__env->stopSection(); ?>
    <?php $__env->startSection('customjs'); ?>
        <script src="<?php echo e(asset('custom_js/reports.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/report_stock_available.blade.php ENDPATH**/ ?>