
<div class="col-sm-6 col-md-6">
    <div class="form-group">
        <label><?php echo app('translator')->get('admin_master.product.product_name'); ?> <span class="text-danger">*</span></label>
        <div class="input-group">
            <input type="text" class="form-control" name="name" value="<?php echo e(isset($product) ? $product->name : ''); ?>" id="name" autocomplete="true" placeholder="<?php echo app('translator')->get('admin_master.product.product_name_enter'); ?>">
        </div>
        <div class="error_name text-danger error"></div>
    </div>
</div>

<div class="col-sm-6 col-md-6">
    <div class="form-group">
        <label><?php echo app('translator')->get('admin_master.product.calculation'); ?> <span class="text-danger">*</span></label>
        <div class="input-group">
            <input type="text" class="form-control only_integer" name="calculation" value="<?php echo e(isset($product) ? $product->calculation : ''); ?>" id="calculation" autocomplete="false" placeholder="<?php echo app('translator')->get('admin_master.product.calculation_enter'); ?>">
        </div>
        <div class="error_calculation text-danger error"></div>
    </div>
</div>

<div class="col-sm-6 col-md-6 fullselect2">
    <div class="form-group">
        <div class="group-flex d-flex">
            <label><?php echo app('translator')->get('admin_master.product.brand_type_name'); ?> <span class="text-danger">*</span></label>
            <div class="in-btn-column">
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('brand_create')): ?>
                    <button type="button" class="btn addRecordBtn addBtn add_brand sm_btn" title="New Brand" ><i class="fas fa-plus"></i><?php echo app('translator')->get('admin_master.product.new_brand'); ?></button>
                <?php endif; ?> 
            </div>
        </div>
        <div class="input-group">
            <select name="brand_id" class="form-control select2" id="brandList">
                <option value="" disabled selected><?php echo app('translator')->get('admin_master.product.select_brand'); ?></option>
                <?php $__currentLoopData = $brands; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $brand): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($brand->id); ?>"  <?php echo e(isset($product) ? $product->brand_id == $brand->id ? 'selected' :'' :''); ?> ><?php echo e($brand->name ??''); ?> </option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>            
        </div>
        
        <div class="error_brand_id text-danger error"></div>
    </div>
</div>

<div class="col-sm-6 col-md-6 fullselect2">
    <div class="form-group unit_type">
        <div class="group-flex d-flex">
            <label><?php echo app('translator')->get('admin_master.product.unit_type'); ?> <span class="text-danger">*</span></label>
            <div class="in-btn-column">
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('unit_create')): ?>
                    <button type="button" class="btn addRecordBtn addBtn add_unit sm_btn" title="New Unit" ><i class="fas fa-plus"></i><?php echo app('translator')->get('admin_master.product.new_unit'); ?></button>
                <?php endif; ?>
            </div>
        </div>
        <div class="input-group">
            <select name="unit_type" class="form-control select2" id="unit_type">
                <option value="" disabled selected><?php echo app('translator')->get('admin_master.product.select_unit_type'); ?></option>
                <?php $__currentLoopData = $product_units; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product_unit): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($product_unit->id); ?>"  <?php echo e(isset($product) ? $product->unit_type == $product_unit->id ? 'selected' :'' :''); ?> ><?php echo e($product_unit->name ??''); ?> </option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>             
        </div>
        <div class="error_unit_type text-danger error"></div>
    </div>
</div>



<div class="col-md-12 text-right">
    <?php if(isset($product)): ?>
    <input type="button" class="btn btn-primary save_product_btn" value="<?php echo app('translator')->get('admin_master.g_update'); ?>" title="<?php echo app('translator')->get('admin_master.g_update'); ?>">
    <?php else: ?>
    <input type="button" class="btn btn-primary save_product_btn" value="<?php echo app('translator')->get('admin_master.g_submit'); ?>" title="<?php echo app('translator')->get('admin_master.g_submit'); ?>">
    <?php endif; ?>
</div>

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