<?php $__env->startSection('title','Inventory Control'); ?>
<?php $__env->startSection('content'); ?>
<div class="page-shell"><div class="page-head"><div><h1 class="page-title">Inventory Control</h1><div class="page-subtitle">Stock overview, recent movement and locations</div></div><div class="form-actions"><a class="btn" href="<?php echo e(route('admin.inventory.adjustments')); ?>">Stock Adjustment</a><a class="btn" href="<?php echo e(route('admin.inventory.transfers')); ?>">Stock Transfer</a></div></div>
<div class="grid-3"><?php $__currentLoopData = $locations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $loc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><div class="stat"><div class="k">Location</div><div class="v" style="font-size:18px"><?php echo e($loc->name); ?></div></div><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></div>
<div class="grid-2"><div class="card panel-tight table-wrap"><h3>Current Stock</h3><table class="table"><thead><tr><th>Code</th><th>Product</th><th>Stock</th></tr></thead><tbody><?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><tr><td><?php echo e($item->product_code); ?></td><td><?php echo e($item->product_name); ?></td><td><?php echo e($item->stock_quantity); ?></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></tbody></table><?php echo e($products->links()); ?></div><div class="card panel-tight table-wrap"><h3>Recent Movements</h3><table class="table"><thead><tr><th>Date</th><th>Type</th><th>Product</th><th>Qty</th><th>Ref</th></tr></thead><tbody><?php $__currentLoopData = $movements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><tr><td><?php echo e($item->created_at); ?></td><td><?php echo e($item->movement_type); ?></td><td><?php echo e($item->product_name); ?></td><td><?php echo e($item->qty); ?></td><td><?php echo e($item->reference_no); ?></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></tbody></table></div></div></div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH J:\xampp\htdocs\pos\resources\views/admin/inventory/index.blade.php ENDPATH**/ ?>