<?php $__env->startSection('title',$inventoryOpening->reference_no); ?>
<?php $__env->startSection('content'); ?><div class="page-head"><div><h1><?php echo e($inventoryOpening->reference_no); ?></h1><p><?php echo e($inventoryOpening->warehouse->name_en); ?> · <?php echo e($inventoryOpening->opening_date->format('d M Y')); ?></p></div><?php if($inventoryOpening->status==='draft'): ?><form method="POST" action="<?php echo e(route('opening-stock.approve',$inventoryOpening)); ?>"><?php echo csrf_field(); ?><button class="btn btn-primary">Approve & post</button></form><?php endif; ?></div><div class="card-erp"><div class="table-responsive"><table class="table table-dense"><thead><tr><th>#</th><th>Product</th><th>Unit</th><th class="text-end">Qty</th><th class="text-end">Base qty</th><th class="text-end">Cost</th><th class="text-end">Total</th><th>Batch / expiry</th></tr></thead><tbody><?php $__currentLoopData = $inventoryOpening->items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i=>$x): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><tr><td><?php echo e($i+1); ?></td><td><?php echo e($x->product?->name_en); ?></td><td><?php echo e($x->unit?->code); ?></td><td class="text-end"><?php echo e(number_format((float)$x->qty,4)); ?></td><td class="text-end"><?php echo e(number_format((float)$x->base_qty,4)); ?></td><td class="text-end"><?php echo e(number_format((float)$x->unit_cost,4)); ?></td><td class="text-end"><?php echo e(number_format((float)$x->total_cost,2)); ?></td><td><?php echo e($x->batch_number); ?> <?php echo e($x->expiry_date?->format('Y-m-d')); ?></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\opening_stock\show.blade.php ENDPATH**/ ?>