<?php echo $__env->make('admin.layouts.header', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('admin.layouts.sidebar', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
        <!-- ============================================================== -->
        <!-- Start right Content here -->
        <!-- ============================================================== -->
        <div class="main-content">

            <div class="page-content">
                <div class="container-fluid">

                    <!-- start page title -->
                    <div class="row">
                        <div class="col-12">
                            <div class="page-title-box d-sm-flex align-items-center justify-content-between bg-galaxy-transparent">
                                <h4 class="mb-sm-0">Edit Attribute Value</h4>

                                <div class="page-title-right">
                                    <ol class="breadcrumb m-0">
                                        <li class="breadcrumb-item"><a href="javascript: void(0);">Forms</a></li>
                                        <li class="breadcrumb-item active">Edit Attribute Value</li>
                                    </ol>
                                </div>

                            </div>
                        </div>
                    </div>
                    <!-- end page title -->

                    <div class="row">
                        <div class="col-lg-12">
                            <div class="card">
                                
                            <form action="<?php echo e(route('attribute.value.update', $attributeValue->id)); ?>" method="post">
                                <?php echo csrf_field(); ?>
                                <div class="card-body">
                                    <div class="live-preview">
                                        <div class="row gy-4">
                                            
                                            <div class="col-xxl-6 col-md-6">
                                                <div>
                                                    <label for="statusSelect" class="form-label">Attribute</label>
                                                    <select name="attribute_id" class="form-select" id="statusSelect">
                                                        <option value="">Select Attribute</option>
                                                        <?php $__currentLoopData = $attributes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attribute): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                        <option value="<?php echo e($attribute->id); ?>" <?php echo e(old('attribute_id', $attributeValue->attribute_id) == $attribute->id ? 'selected' : ''); ?>><?php echo e($attribute->name ?? ''); ?></option>
                                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </select>
                                                    <?php if($errors->has('attribute_id')): ?>
                                                    <p class="text-danger"><?php echo e($errors->first('attribute_id')); ?></p>
                                                    <?php endif; ?>    
                                                </div>
                                            </div>

                                            <div class="col-xxl-6 col-md-6">
                                                <div>
                                                    <label for="basiInput" class="form-label">Value</label>
                                                    <input type="text" name="value" class="form-control" id="basiInput" placeholder="Enter Attribute Value" value="<?php echo e($attributeValue->value ?? ''); ?>">
                                                    <?php if($errors->has('value')): ?>
                                                    <p class="text-danger"><?php echo e($errors->first('value')); ?></p>
                                                    <?php endif; ?>
                                                </div>
                                            </div>
                                            <!--end col-->
                                

                                            <!--end col-->
                                                <div style="text-align: center;">
                                                <button type="submit" class="btn btn-primary">Submit</button>
                                                </div>
                                            
                                            <!--end col-->
                                        </div>
                                        <!--end row-->
                                    </div>
                                
                                </div>
                            </form>
                            </div>
                        </div>
                        <!--end col-->
                    </div>
                    <!--end row-->


<?php echo $__env->make('admin.layouts.footer', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>                   <?php /**PATH C:\xampp\htdocs\dec\resources\views/admin/product-variant/attribute-value-edit.blade.php ENDPATH**/ ?>