<?php $__env->startSection('title','Stock Adjustments'); ?>
<?php $__env->startSection('content'); ?><div class="page-head"><div><h1>Stock adjustments</h1><p>Controlled increase/decrease with reason and approval.</p></div><a class="btn btn-primary" href="<?php echo e(route('stock-adjustments.create')); ?>">New adjustment</a></div><div class="card-erp"><div class="table-responsive"><table class="table table-dense"><thead><tr><th>Adjustment</th><th>Date</th><th>Warehouse</th><th>Type</th><th>Reason</th><th class="text-end">Cost</th><th>Status</th><th></th></tr></thead><tbody><?php $__empty_1 = true; $__currentLoopData = $adjustments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $a): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><tr><td class="fw-bold text-accent"><?php echo e($a->adjustment_no); ?></td><td><?php echo e($a->adjustment_date->format('d M Y')); ?></td><td><?php echo e($a->warehouse?->code); ?></td><td><?php echo e(ucfirst($a->adjustment_type)); ?></td><td><?php echo e($a->reason); ?></td><td class="text-end"><?php echo e(number_format((float)$a->total_cost,2)); ?></td><td><span class="badge status-<?php echo e($a->status); ?>"><?php echo e(strtoupper($a->status)); ?></span></td><td><a class="btn btn-light border btn-dense" href="<?php echo e(route('stock-adjustments.show',$a)); ?>">Open</a></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?><tr><td colspan="8" class="text-center text-muted py-5">No adjustments.</td></tr><?php endif; ?></tbody></table></div></div><?php $__env->stopSection(); ?>

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