<div class="col-lg-12 row pricing-list-item border-item mb-4" style="background-color: rgba(21,97,203,0.1);height:auto">
    <?php if(count($models)): ?>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('model_id', getCurrentLocale()) ?? __('products.model_id')); ?> </label>
            <select class="form-control <?php echo e($errors->has('model_id') ? 'is-invalid' : ''); ?>" name="model_id" >
                <option value=""><?php echo e(__('dashboard.select')); ?></option>
                <?php $__currentLoopData = $models; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($row->id); ?>"><?php echo e($row->name); ?></option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
        </div>
    <?php endif; ?>

    <?php if($category->brand_status == 'true'): ?>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('brand_id', getCurrentLocale()) ?? __('products.brand_id')); ?> </label>
            <select  class="form-control <?php echo e($errors->has('brand_id') ? 'is-invalid' : ''); ?>" name="brand_id" >
                <option value=""><?php echo e(__('dashboard.select')); ?></option>
                <?php $__currentLoopData = $brands; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($row->id); ?>"><?php echo e($row->name); ?></option>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </select>
        </div>
    <?php endif; ?>
    <?php $__currentLoopData = $ones; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $attribute): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="col-lg-12 row pricing-list-item border-item mb-4" style="background-color:white;height:auto">
                <div class="col-lg-12">
                    <h3><?php echo e($attribute->name); ?></h3>
                </div>
                <div class="form-group col-lg-6">
                    <label><?php echo e(__('products.choice')); ?> </label>
                    <select class="form-control" name="one[<?php echo e($attribute->id); ?>][choice_id]" >
                        <option value=""><?php echo e(__('dashboard.select')); ?></option>
                        <?php $__currentLoopData = $attribute->choices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $choice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($choice->choice_id); ?>"><?php echo e($choice->choice->currentLangauge->name); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </div>
            </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

    <?php if($main): ?>
        <div class="col-lg-12 row pricing-list-item border-item mb-4" style="background-color:white;height:auto">
            <div class="col-lg-12">
                <h3><?php echo e($main->details->name); ?></h3>
            </div>

            <?php $__currentLoopData = $main->choices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $main_choice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="col-lg-12 row">
                    <div class="col-lg-12 row pricing-list-item border-item mb-4" style="background-color: rgba(21,97,203,0.1);height:auto">
                        <div class="form-group col-lg-12">
                            <h3><?php echo e($main_choice->choice->details->name); ?></h3>
                        </div>
                        <div class="form-group col-lg-12">

                            <h4><?php echo e($sub->details->name); ?></h4>
                        </div>

                            <?php $__currentLoopData = $sub->choices; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $choice): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <div class="col-lg-12 row pricing-list-item border-item mb-4" style="background-color: rgba(21,97,203,0.1);height:auto">
                                        <div class="form-group col-lg-12">
                                            <h5><?php echo e($choice->choice->details->name); ?></h5>
                                        </div>
                                        <div class="form-group col-lg-6">
                                            <label><?php echo e(__('products.count')); ?> </label>
                                            <input type="number" name="multi[<?php echo e($main->id); ?>][<?php echo e($main_choice->choice_id); ?>][<?php echo e($sub->id); ?>][<?php echo e($choice->choice_id); ?>][count]" class="form-control" placeholder="<?php echo e(__('products.count')); ?>">
                                        </div>
                                        <div class="form-group col-lg-6 image_container">
                                            <label><?php echo e(__('pages.image')); ?> </label>
                                            <input id="image_<?php echo e($main->id . 'choice'.$main_choice->id . 'subattr'.$sub->id .'choice'.$choice->id); ?>_thumbnail" class="image_<?php echo e($main->id . 'choice'.$main_choice->id . 'subattr'.$sub->id .'choice'.$choice->id); ?>_thumbnail" type="hidden" name="multi[<?php echo e($main->id); ?>][<?php echo e($main_choice->choice_id); ?>][<?php echo e($sub->id); ?>][<?php echo e($choice->choice_id); ?>][image]" />

                                            <div class="photos main_<?php echo e($main->id . 'choice'.$main_choice->id . 'subattr'.$sub->id .'choice'.$choice->id); ?>_photo hide">
                                                <div class="col-md-4">
                                                    <div class="items">
                                                        <div class="img">
                                                            <a href="#" id="lfm" data-input=".image_<?php echo e($main->id . 'choice'.$main_choice->id . 'subattr'.$sub->id .'choice'.$choice->id); ?>_thumbnail" data-preview=".image_<?php echo e($main->id . 'choice'.$main_choice->id . 'subattr'.$sub->id .'choice'.$choice->id); ?>_holder" class="lfm" data-hide=".pick_<?php echo e($main->id . 'choice'.$main_choice->id . 'subattr'.$sub->id .'choice'.$choice->id); ?>_button">
                                                                <img   id="image_<?php echo e($main->id . 'choice'.$main_choice->id . 'subattr'.$sub->id .'choice'.$choice->id); ?>_holder" class="image_<?php echo e($main->id . 'choice'.$main_choice->id . 'subattr'.$sub->id .'choice'.$choice->id); ?>_holder"/>
                                                            </a>
                                                        </div>
                                                        <a href="#" class="showHide resetImage close" data-empty=".image_<?php echo e($main->id . 'choice'.$main_choice->id . 'subattr'.$sub->id .'choice'.$choice->id); ?>_thumbnail" data-hide=".main_<?php echo e($main->id . 'choice'.$main_choice->id . 'subattr'.$sub->id .'choice'.$choice->id); ?>_photo" data-show=".pick_<?php echo e($main->id . 'choice'.$main_choice->id . 'subattr'.$sub->id .'choice'.$choice->id); ?>_button"><i class="fas fa-times"></i></a>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="clearfix"></div>
                                            <span class="input-group-btn pick_<?php echo e($main->id . 'choice'.$main_choice->id . 'subattr'.$sub->id .'choice'.$choice->id); ?>_button ">
                                            <a id="lfm"  data-input=".image_<?php echo e($main->id . 'choice'.$main_choice->id . 'subattr'.$sub->id .'choice'.$choice->id); ?>_thumbnail" data-preview=".image_<?php echo e($main->id . 'choice'.$main_choice->id . 'subattr'.$sub->id .'choice'.$choice->id); ?>_holder" data-show=".main_<?php echo e($main->id . 'choice'.$main_choice->id . 'subattr'.$sub->id .'choice'.$choice->id); ?>_photo" data-hide=".pick_<?php echo e($main->id . 'choice'.$main_choice->id . 'subattr'.$sub->id .'choice'.$choice->id); ?>_button" class="lfm btn btn-primary text-light">
                                                <i class="fas fa-camera-retro"></i> Choose
                                            </a>
                                         </span>
                                        </div>
                                    </div>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    <?php endif; ?>
</div>
<script src="<?php echo e(asset('assets/admin/js/editor.js')); ?>"></script>
<script src="<?php echo e(asset('assets/admin/js/lfm.js')); ?>"></script>
<script src="<?php echo e(asset('assets/admin/js/articles.js')); ?>"></script>
<?php /**PATH /Applications/MAMP/htdocs/city/resources/views/admin/ajax/attributes.blade.php ENDPATH**/ ?>