<?php $__env->startSection('title',$stockAdjustment->adjustment_no); ?>
<?php $__env->startSection('content'); ?><div class="page-head"><div><h1><?php echo e($stockAdjustment->adjustment_no); ?></h1><p><?php echo e(ucfirst($stockAdjustment->adjustment_type)); ?> · <?php echo e($stockAdjustment->reason); ?> · <?php echo e($stockAdjustment->warehouse->name_en); ?></p></div><?php if($stockAdjustment->status==='draft'): ?><form method="POST" action="<?php echo e(route('stock-adjustments.approve',$stockAdjustment)); ?>"><?php echo csrf_field(); ?><button class="btn btn-primary">Approve adjustment</button></form><?php endif; ?></div><div class="card-erp"><div class="table-responsive"><table class="table table-dense"><thead><tr><th>Product</th><th>Unit</th><th class="text-end">Current</th><th class="text-end">Adjustment</th><th class="text-end">New qty</th><th class="text-end">Cost</th></tr></thead><tbody><?php $__currentLoopData = $stockAdjustment->items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><tr><td><?php echo e($i->product?->name_en); ?></td><td><?php echo e($i->unit?->code); ?></td><td class="text-end"><?php echo e(number_format((float)$i->current_qty,4)); ?></td><td class="text-end"><?php echo e(number_format((float)$i->adjustment_qty,4)); ?></td><td class="text-end fw-bold"><?php echo e(number_format((float)$i->new_qty,4)); ?></td><td class="text-end"><?php echo e(number_format((float)$i->total_cost,2)); ?></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></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\show.blade.php ENDPATH**/ ?>