<?php $__env->startSection('title','Opening Stock'); ?>
<?php $__env->startSection('content'); ?><div class="page-head"><div><h1>Opening stock</h1><p>Draft and approve initial inventory through the stock ledger.</p></div><a class="btn btn-primary" href="<?php echo e(route('opening-stock.bulk')); ?>">New opening stock</a></div><div class="card-erp"><div class="table-responsive"><table class="table table-dense"><thead><tr><th>Reference</th><th>Date</th><th>Warehouse</th><th>Financial year</th><th class="text-end">Total cost</th><th>Status</th><th>Created by</th><th></th></tr></thead><tbody><?php $__empty_1 = true; $__currentLoopData = $openings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $o): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><tr><td class="fw-bold text-accent"><?php echo e($o->reference_no); ?></td><td><?php echo e($o->opening_date->format('d M Y')); ?></td><td><?php echo e($o->warehouse?->code); ?></td><td><?php echo e($o->financialYear?->name); ?></td><td class="text-end"><?php echo e(number_format((float)$o->total_cost,2)); ?></td><td><span class="badge status-<?php echo e($o->status); ?>"><?php echo e(strtoupper($o->status)); ?></span></td><td><?php echo e($o->createdBy?->name); ?></td><td><a class="btn btn-light border btn-dense" href="<?php echo e(route('opening-stock.show',$o)); ?>">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 opening stock documents.</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/opening_stock/index.blade.php ENDPATH**/ ?>