<?php $__env->startSection('title','Stock Transfer'); ?>
<?php $__env->startSection('content'); ?>
<div class="page-shell"><div class="page-head"><div><h1 class="page-title">Stock Transfer</h1><div class="page-subtitle">Store to warehouse / warehouse to store notes</div></div></div>
<form method="POST" action="<?php echo e(route('admin.inventory.transfers.store')); ?>" class="card panel-tight grid-3"><?php echo csrf_field(); ?>
<div><label>Date</label><input type="date" name="transfer_date" value="<?php echo e(now()->toDateString()); ?>"></div>
<div><label>Product</label><select name="product_id"><?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><option value="<?php echo e($product->id); ?>"><?php echo e($product->product_name); ?> (<?php echo e($product->product_code); ?>)</option><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></select></div>
<div><label>Qty</label><input type="number" min="1" name="qty"></div>
<div><label>From</label><select name="from_location"><?php $__currentLoopData = $locations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $loc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><option><?php echo e($loc->name); ?></option><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></select></div>
<div><label>To</label><select name="to_location"><?php $__currentLoopData = $locations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $loc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><option><?php echo e($loc->name); ?></option><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></select></div>
<div style="grid-column:1/-1"><label>Notes</label><textarea name="notes" rows="3"></textarea></div>
<div class="form-actions" style="grid-column:1/-1"><button class="btn primary">Save Transfer</button></div>
</form>
<div class="card panel-tight table-wrap"><table class="table"><thead><tr><th>No</th><th>Date</th><th>Product</th><th>From</th><th>To</th><th>Qty</th></tr></thead><tbody><?php $__currentLoopData = $transfers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><tr><td><?php echo e($row->transfer_no); ?></td><td><?php echo e($row->transfer_date); ?></td><td><?php echo e($row->product_name); ?></td><td><?php echo e($row->from_location); ?></td><td><?php echo e($row->to_location); ?></td><td><?php echo e($row->qty); ?></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?></tbody></table><?php echo e($transfers->links()); ?></div></div>
<?php $__env->stopSection(); ?>

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