<?php
    $attribute_id = 'feature_attribute_' . $counter;
    if (isset($feature)) {
        $model = $feature;
    } else {
        $model = null;
    }
?>
<div class="row m-4" id="feature-<?php echo e($counter); ?>">
    <?php if(isset($feature)): ?>
        <input type="hidden" value="<?php echo e($feature->id); ?>" name="features[<?php echo e($counter); ?>][id]">
    <?php endif; ?>
    <div class="col-lg-12 mb-6">
        <label> <?php echo e(__('lang.features')); ?> </label>
        <?php if (isset($component)) { $__componentOriginalf3a44789c30c969f87458587a8daaae3 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalf3a44789c30c969f87458587a8daaae3 = $attributes; } ?>
<?php $component = App\View\Components\FeatureSelect::resolve(['model' => $model,'attributeid' => $attribute_id,'counter' => $counter,'name' => 'features['.e($counter).'][feature_id]'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('feature-select'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\FeatureSelect::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalf3a44789c30c969f87458587a8daaae3)): ?>
<?php $attributes = $__attributesOriginalf3a44789c30c969f87458587a8daaae3; ?>
<?php unset($__attributesOriginalf3a44789c30c969f87458587a8daaae3); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalf3a44789c30c969f87458587a8daaae3)): ?>
<?php $component = $__componentOriginalf3a44789c30c969f87458587a8daaae3; ?>
<?php unset($__componentOriginalf3a44789c30c969f87458587a8daaae3); ?>
<?php endif; ?>
    </div>

    <div class="col-lg-12 mb-6">
        <label> <?php echo e(__('lang.attributes')); ?> </label>
        <?php if (isset($component)) { $__componentOriginal9acfacf1934d61af8bb26819cfcef96a = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9acfacf1934d61af8bb26819cfcef96a = $attributes; } ?>
<?php $component = App\View\Components\AttributeSelect::resolve(['model' => $model,'id' => $attribute_id,'featureid' => $model ? $model->feature_id : null,'name' => 'features['.e($counter).'][feature_attribute_id]'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('attribute-select'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\AttributeSelect::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9acfacf1934d61af8bb26819cfcef96a)): ?>
<?php $attributes = $__attributesOriginal9acfacf1934d61af8bb26819cfcef96a; ?>
<?php unset($__attributesOriginal9acfacf1934d61af8bb26819cfcef96a); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9acfacf1934d61af8bb26819cfcef96a)): ?>
<?php $component = $__componentOriginal9acfacf1934d61af8bb26819cfcef96a; ?>
<?php unset($__componentOriginal9acfacf1934d61af8bb26819cfcef96a); ?>
<?php endif; ?>
    </div>
    <!--begin::Input group-->
    <div class="col-lg-12 mb-6">
        <!--begin::Label-->
        <label><?php echo e(__('lang.value')); ?></label>
        <!--end::Label-->


        <!--begin::Col-->
        <div class="col-lg-12 fv-row fv-plugins-icon-container">
            <input type='text' name="features[<?php echo e($counter); ?>][value]"
                class="form-control form-control-lg form-control-solid mb-3 mb-lg-0 w-75"
                placeholder="<?php echo e(__('lang.value')); ?>"
                value="<?php echo e(old('features.' . $counter . '.value', isset($feature) ? $feature->value : '')); ?>">

        </div>
        <!--end::Col-->
    </div>
    <!--end::Row-->

    <!--end::Input group-->

    <?php if(isset($feature)): ?>
        <div class="row d-flex justify-content-end">
            <a href="<?php echo e(route('feature.delete', $feature->id)); ?>" class="btn btn-danger btn-sm"><i
                    class="fas fa-trash"></i></a>
        </div>
    <?php else: ?>
        <button type="button" class="btn btn-danger mt-4" onclick="deleteFeature(<?php echo e($counter); ?>)">
            <i class="fas fa-trash"></i></button>
    <?php endif; ?>


</div>
<?php /**PATH /home/oday/public_html/mazdashboard.alialzahabia.com/resources/views/AdminPanel/auctions/features.blade.php ENDPATH**/ ?>