<div class="row">
    <div class="col-sm-6 col-md-6 fullselect2">
        <div class="form-group">
            <label for="product_id"><?php echo app('translator')->get('quickadmin.inventory.fields.product_id'); ?><span class="text-danger">*</span></label>
            <div class="input-group">
                <select name="product_id" class="form-control select2" id="product_id">
                    <option value="" disabled selected><?php echo app('translator')->get('quickadmin.inventory.select_product'); ?></option>
                    <?php $__currentLoopData = $allproduct; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($product->id); ?>"  <?php echo e(isset($inventory) ? $inventory->product_id == $product->id ? 'selected' :'' :''); ?> ><?php echo e($product->full_name ??''); ?> </option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
            </div>
        </div>
    </div>
    <div class="col-sm-6 col-md-6">
        <div class="form-group">
            <label for="code"><?php echo app('translator')->get('quickadmin.inventory.fields.quantity'); ?><span class="text-danger">*</span></label>
            <div class="input-group">                            
                <input type="text" class="form-control" name="quantity" value="<?php echo e(isset($inventory) ? (int)$inventory->quantity : old('quantity')); ?>" id="quantity" min="1" step="1" oninput="this.value = this.value.replace(/[^0-9.]/g, ''); if(this.value.includes('-')) this.value = this.value.replace('-', ''); if(this.value.indexOf('.') !== -1) { var parts = this.value.split('.'); this.value = parts[0] + '.' + parts[1].slice(0, 2); }" placeholder="<?php echo app('translator')->get('quickadmin.qa_enter'); ?> <?php echo app('translator')->get('quickadmin.inventory.fields.quantity'); ?>">
             </div>
        </div>
    </div>
    <div class="col-sm-6 col-md-6">
        <div class="form-group">
            <label for="place"><?php echo app('translator')->get('quickadmin.inventory.fields.area_id'); ?><span class="text-danger">*</span></label>
            <div class="input-group">
                <select name="place" class="form-control select2" id="place">
                    <?php $__currentLoopData = config('app.product_place'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $place): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($key); ?>"  <?php echo e(isset($inventory) ? $inventory->place == $key? 'selected' :'' :''); ?> ><?php echo e($place ??''); ?> </option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
            </div>
        </div>
    </div>  

    <div class="col-sm-6 col-md-6">
        <div class="form-group">
            <label for="entry_date"><?php echo app('translator')->get('quickadmin.inventory.fields.entry_date'); ?><span class="text-danger">*</span></label>
            <div class="input-group">
                <input type="text" class="form-control" name="entry_date" max="<?= date('Y-m-d'); ?>" value="<?php echo e(isset($inventory) ? $inventory->entry_date : old('entry_date')); ?>" id="entry_date" >
            </div>
        </div>
    </div>

    <div class="col-md-12">
        <div class="form-group">
            <label for="remark"><?php echo app('translator')->get('quickadmin.inventory.fields.remark'); ?></label>
            <div class="input-group">
                <input type="text" class="form-control" name="remark" value="<?php echo e(isset($inventory) ? $inventory->remark : old('remark')); ?>" id="remark" autocomplete="true" placeholder="Enter Remark">
            </div>
        </div>
    </div>

    <div class="col-md-12 text-right">
        <button type="submit" class="btn btn-primary">
        <?php if(isset($inventory)): ?>
            <?php echo app('translator')->get('quickadmin.qa_update'); ?>
        <?php else: ?>
            <?php echo app('translator')->get('quickadmin.qa_submit'); ?>
        <?php endif; ?>
        </button>
    </div>
</div>

<?php /**PATH /home/hipldemo2/public_html/billing-software.hipl-staging2.com/resources/views/admin/inventory/_form.blade.php ENDPATH**/ ?>