<?php $__env->startSection('title'); ?><?php echo app('translator')->get('quickadmin.inventory.inventory_report'); ?><?php $__env->stopSection(); ?>

<?php $__env->startSection('custom_css'); ?>

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

<?php $__env->startSection('content'); ?>
    <div class="page-header">
        <header style="padding: 1px 0; max-width: 100%; margin: 0 auto;">
            <h2 style="margin: 0;color: #2a2a33;font-size: 18px;font-weight: bold; text-align:center;"><strong><?php echo app('translator')->get('quickadmin.inventory.inventory_report'); ?></strong></h2>
        </header>
    </div>
    <main class="main" style="max-width: 100%;margin: 0 auto;padding: 40px 0;padding-top: 20px;">
       <table cellpadding="0" cellspacing="0" width="100%" style="color: #000;font-size: 15px;">
            <tbody>
                <tr>
                    <th style="padding: 8px;border: 1px solid #000;border-right: none;" align="left"><?php echo app('translator')->get('quickadmin.qa_sn'); ?></th>
                    <th style="padding: 8px;border: 1px solid #000;border-right: none;" align="center"><?php echo app('translator')->get('quickadmin.inventory.fields.storage_type'); ?></th>
                    <th style="padding: 8px;border: 1px solid #000;border-right: none;" align="center"><?php echo app('translator')->get('quickadmin.inventory.fields.brand_name'); ?></th>
                    <th style="padding: 8px;border: 1px solid #000;border-right: none;" align="center"><?php echo app('translator')->get('quickadmin.inventory.fields.product_name'); ?></th>
                    <th style="padding: 8px;border: 1px solid #000;" align="center"><?php echo app('translator')->get('quickadmin.inventory.fields.stock'); ?></th>
                </tr>
            
                <?php $__empty_1 = true; $__currentLoopData = $inventories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $inv): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                    <?php
                        $total_sell = getSellProductByPlace($inv->product_id, $inv->place);
                        $total_left = $inv->total_buy - $total_sell;
                    ?>
                    <tr>
                        <td style="padding: 8px;border: 1px solid #000;border-right: none;" align="left"><?php echo e($key + 1); ?></td>
                        <td style="padding: 8px;border: 1px solid #000;border-right: none;" align="center"><?php echo e($places[$inv->place] ?? $inv->place); ?></td>
                        <td style="padding: 8px;border: 1px solid #000;border-right: none;" align="center"><?php echo e($inv->product->brands->name ?? ''); ?></td>
                        <td style="padding: 8px;border: 1px solid #000;border-right: none;" align="center"><?php echo e($inv->product->name ?? ''); ?></td>
                        <td style="padding: 8px;border: 1px solid #000;" align="center"><?php echo e($total_left); ?></td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <tr>
                        <td colspan="5" style="padding: 8px;border: 1px solid #000;border-top: none;" align="center">No Record Found!</td>
                    </tr>
                <?php endif; ?>
            </tbody>
        </table>

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

<?php echo $__env->make('layouts.print-view.print-layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/hipldemo2/public_html/billing-software.hipl-staging2.com/resources/views/admin/inventory/print-inventory-list.blade.php ENDPATH**/ ?>