<?php
    use Carbon\Carbon;
?>


<?php $__env->startSection('title', 'Update - Product Price'); ?>

<?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-md-12 col-sm-12">
            <div class="card card-box">
                <div class="card-head text-white " style="background-color:#3FCC7E;">
                    <header>Update Product - Price</header>
                </div>
                <div class="card-body" id="bar-parent">
                    <form method="post" action="<?php echo e(route('admin.product-price.update', $productPrice->id)); ?>">
                        <?php echo csrf_field(); ?>
                        <?php echo method_field('PATCH'); ?>
                        <div class="row">
                            <div class="col-md-6 col-sm-6">

                                
                                <div class="form-group">
                                    <label>Product Name</label>
                                    <select name="product_id" class="form-control  select2 " >
                                        <?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option 
                                            <?php echo e($productPrice->product_id == $product->id ? 'selected':''); ?>

                                            value="<?php echo e($product->id); ?>"><?php echo e($product->product_name); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>

                                
                                <div class="form-group">
                                    <label for="batch">Batch No </label>
                                    
                                    <input type="text" class="form-control" id="batch" value="<?php echo e($productPrice->batch_no); ?>"  name="batch" >
                                </div>

                                
                                <div class="form-group">
                                    <label for="quantity">Quantity</label>
                                    <input type="text" name="quantity" class="form-control" id="quantity" value="<?php echo e($productPrice->quantity); ?>">
                                </div>

                                
                                <div class="form-group">
                                    <label for="cost">Cost Price</label>
                                    <input type="text" name="cost" class="form-control" id="cost" value="<?php echo e($productPrice->cost_price); ?>">
                                </div>
                            </div>

                        
                            <div class="col-md-6 col-sm-6">
                                
                                
                                <div class="form-group">
                                    <label for="sell">Sell Price</label>
                                    <input type="text" name="sell" class="form-control" id="sell" placeholder="Enter Selling price" value="<?php echo e($productPrice->selling_price); ?>">
                                </div>
                                
                                
                                <div class="form-group">
                                    <label class="">M.F.G Date</label>
                                    <div class="input-group date form_datetime" data-date="<?php echo e(Carbon::now()); ?>" data-date-format="dd MM yyyy HH:ii p" data-link-field="dtp_input1">
                                        <input class="form-control" size="16" type="text" name="mfg_date" value="<?php echo e(old('mfg_date')); ?>">
                                        <span class="input-group-addon ml-2">
                                            <span class="fa fa-calendar"></span>
                                        </span>
                                    </div>
                                    <input type="hidden" id="dtp_input1" value="" />
                                </div>

                                
                                <div class="form-group">
                                    <label class="">EXP Date</label>
                                    <div class="input-group date form_datetime" data-date="<?php echo e(Carbon::now()); ?>" data-date-format="dd MM yyyy  HH:ii p" data-link-field="dtp_input1">
                                        <input class="form-control" size="16" type="text" name="exp_date" value="<?php echo e(old('exp_date')); ?>">
                                        <span class="input-group-addon ml-2">
                                            <span class="fa fa-calendar"></span>
                                        </span>
                                    </div>
                                    <input type="hidden" id="dtp_input1" value="" />
                                </div>
                            </div>
                        </div>

                        

                        
                        
                        <a class="btn deepPink-bgcolor m-t-15 waves-effect" href="<?php echo e(route('admin.product-price.index')); ?>">BACK</a>
                        <button type="submit" class="btn btn-success m-t-15 waves-effect">SUBMIT</button>
                    </form>
                </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>

    <!-- data 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>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('template.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/forazitradersbd/public_html/resources/views/admin/productprice/edit.blade.php ENDPATH**/ ?>