<div class="row <?php echo e(($product->id && !in_array($store->id,auth()->user()->stores_ids))?'hide':''); ?>">
    <div class="col-md-6">
        <div class="form-group">
            <label><?php echo app('translator')->getFromJson('front.store'); ?></label>
            <input type="hidden" value="<?php echo e($store->id); ?>" name="store[<?php echo e($i); ?>][store_id]">
            <input type="hidden" value="<?php echo e(isset($store->pivot->sale_count)?$store->pivot->sale_count:0); ?>" name="store[<?php echo e($i); ?>][sale_count]">
            <input readonly value="<?php echo e($store->name); ?>" type="text" class="form-control ">
        </div>
    </div>

    <div class="col-md-6">
        <div class="form-group">
            <label><?php echo app('translator')->getFromJson('front.quantity'); ?></label>
            <div class="input-group">
                <input name="store[<?php echo e($i); ?>][qty]" value="<?php echo e(isset($store->pivot->qty)?round($store->pivot->qty-$store->pivot->sale_count,1):0); ?>" type="number" step="0.01"  class="form-control" required="required">
                <span class="unit input-group-addon">
                    <select style="width: 100%;" name="store[<?php echo e($i); ?>][unit_id]" required="" class="form-control unitclass storeUnites">
                        <?php $__currentLoopData = $units; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $unit): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option <?php echo e(isset($store->pivot->unit_id)&&$store->pivot->unit_id==$unit->id?'selected':''); ?>  value="<?php echo e($unit->id); ?>"><?php echo e($unit->name); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </span>
            </div>
        </div>
    </div>
</div>
