<?php $__env->startSection('title','New Opening Stock'); ?>
<?php $__env->startSection('content'); ?><form method="POST" action="<?php echo e(route('opening-stock.store')); ?>" id="stockForm"><?php echo csrf_field(); ?><div class="page-head"><div><h1>New opening stock</h1><p>Spreadsheet-style entry; approval creates immutable ledger movements.</p></div></div><div class="card-erp"><div class="card-erp-body"><div class="row g-2"><div class="col-md-4"><label class="form-label">Warehouse</label><select id="stockWarehouse" name="warehouse_id" class="form-select"><?php $__currentLoopData = $warehouses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $w): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><option value="<?php echo e($w->id); ?>"><?php echo e($w->code); ?> · <?php echo e($w->name_en); ?></option><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></select></div><div class="col-md-3"><label class="form-label">Financial year</label><select name="financial_year_id" class="form-select"><?php $__currentLoopData = $financialYears; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $y): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><option value="<?php echo e($y->id); ?>"><?php echo e($y->name); ?></option><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></select></div><div class="col-md-2"><label class="form-label">Opening date</label><input type="date" name="opening_date" class="form-control" value="<?php echo e(now()->toDateString()); ?>"></div><div class="col-md-3"><label class="form-label">Notes</label><input name="notes" class="form-control"></div></div></div></div><?php echo $__env->make('inventory.partials.product_entry',['mode'=>'opening'], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><div class="sticky-actions d-flex justify-content-end gap-2"><a href="<?php echo e(route('opening-stock.index')); ?>" class="btn btn-light border">Cancel</a><button name="action" value="draft" class="btn btn-outline-secondary">Save draft</button><button name="action" value="approve" class="btn btn-primary">Approve & post</button></div></form><?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\bulk.blade.php ENDPATH**/ ?>