<?php $__env->startSection('title', 'Stock Transfer'); ?>

<?php $__env->startPush('css'); ?>
    <!--select2-->
    <link href="<?php echo e(asset('admin/assets/plugins/select2/css/select2.css')); ?>" rel="stylesheet" type="text/css" />
    <link href="<?php echo e(asset('admin/assets/plugins/select2/css/select2-bootstrap.min.css')); ?>" rel="stylesheet" type="text/css" />
    <!-- date time -->
    <link href="<?php echo e(asset('admin/assets/plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css')); ?> " rel="stylesheet" media="screen">
<?php $__env->stopPush(); ?>

<?php $__env->startSection('content'); ?>
    <div class="page-bar">
        <div class="page-title-breadcrumb">

        </div>
    </div>
    <div class="row">
        <div class="col-12">
            <div class="card card-topline-red">
                <div class="card-head" style="text-align: center;">
                    <header>
                        Stock Transfer
                    </header>
                </div>
                <div class="card-body">
                 <div class="row">
                     <div class="col-6">
                         <form method="post" action="<?php echo e(route('admin.stocks.transfer.store')); ?>">
                             <?php echo csrf_field(); ?>

                             
                             <div class="form-group">
                                 <label for="branch_id">Select Branch</label>
                                 <select id="branch_id" name="branch_id" class="form-control select2 ">
                                     <?php $__currentLoopData = $branches; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $branch): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                         <option value="<?php echo e($branch->id); ?>"><?php echo e($branch->name); ?></option>
                                     <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                 </select>
                             </div>

                             
                             <div class="form-group">
                                 <label for="product_id">Select Product</label>
                                 <select id="product_id" name="product_id" class="form-control select2 ">
                                     <option value="">Select Product</option>
                                     <?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); ?> (Stock: <?php echo e($product->stock()); ?>)</option>
                                     <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                 </select>
                             </div>
                             <div class="row">
                                 <div class="col-6">
                                     
                                     <div class="form-group">
                                         <label for="quantity">Quantity</label>
                                         <input type="number" name="quantity" class="form-control" id="quantity" placeholder="" autocomplete="off" autofocus>
                                     </div>
                                 </div>
                             </div>

                                                          <a class="btn deepPink-bgcolor m-t-15 waves-effect" href="<?php echo e(route('admin.dashboard')); ?>">BACK</a>
                             <button type="submit" class="btn btn-success m-t-15 waves-effect">SUBMIT</button>
                         </form>
                     </div>
                 </div>
                </div>
            </div>
        </div>
    </div>


<?php $__env->stopSection(); ?>
<?php $__env->startPush('js'); ?>
    <!--select2-->
    <script src="<?php echo e(asset('admin/assets/plugins/select2/js/select2.js')); ?>" ></script>
    <script src="<?php echo e(asset('admin/assets/js/pages/select2/select2-init.js')); ?>" ></script>
    <!-- date time -->
    <script src="<?php echo e(asset('admin/assets/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js')); ?>"  charset="UTF-8"></script>
    <script src="<?php echo e(asset('admin/assets/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker-init.js')); ?>"  charset="UTF-8"></script>

    <!-- sweet aleart -->
    <script src="<?php echo e(asset('admin/assets/js/sweetalert.min.js')); ?>"></script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('template.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\forazi\resources\views/admin/stocks/transfer.blade.php ENDPATH**/ ?>