Viewing file: 4a457d1e1d4e2866bf71f596f85a420eb27f11b2.php (5.5 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$component = isset($component) ? $component : null;
$allBrands = \Modules\CMS\Service\Homepage::getBrandsList();
?>
<div class="card dd-content <?php echo e($editorClosed ?? 'card-hide'); ?>">
<div class="card-body">
<form action="<?php echo e(route('builder.update', ['id' => '__id'])); ?>" data-type="component" method="post"
class="component_form form-parent silent-form" novalidate>
<?php echo csrf_field(); ?>
<?php echo $__env->make('cms::hidden_fields', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<div class="form-group row">
<label class="col-sm-3 control-label">
<dt><?php echo e(__('Title')); ?></dt>
</label>
<div class="col-sm-8">
<input type="text" class="form-control section_name inputFieldDesign" name="title" id="title"
value="<?php echo e($component ? $component->title : ''); ?>">
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 control-label">
<dt><?php echo e(__('Brands Type')); ?></dt>
</label>
<div class="col-sm-8">
<select type="text" class="form-control select3" required name="brand_type" id="brand_type">
<?php $__currentLoopData = \Modules\CMS\Service\Homepage::brandsOptions(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<Option <?php echo e($component && $component->brand_type == $key ? 'selected' : ''); ?>
value="<?php echo e($key); ?>"><?php echo e($value); ?></Option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
</div>
<div
class="form-group row cats <?php echo e(!$component || $component->brand_type != 'selectedBrands' ? 'd-none' : ''); ?>">
<label class="col-sm-3 control-label">
<dt><?php echo e(__('Brands')); ?></dt>
</label>
<div class="col-sm-8">
<select type="text" class="form-control select2" name="brands[]" multiple>
<?php if($component && is_array($component->brands)): ?>
<?php $__currentLoopData = $component->brands; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $selected): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if(isset($allBrands[$selected])): ?>
<Option selected value="<?php echo e($selected); ?>"><?php echo e($allBrands[$selected]); ?>
</Option>
<?php
unset($allBrands[$selected]);
?>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<?php $__currentLoopData = $allBrands; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<Option value="<?php echo e($key); ?>"><?php echo e($value); ?></Option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 control-label">
<dt><?php echo e(__('No. of brands to show')); ?></dt>
</label>
<div class="col-sm-8">
<input type="number" min="3" max="20" class="form-control inputFieldDesign" name="brand_limit"
required value="<?php echo e($component ? $component->brand_limit : 9); ?>">
<div class="d-flex mt-2">
<span class="badge badge-danger h-100 mt-1"><?php echo e(__('Note')); ?>!</span>
<small
class="mt-1 <?php echo e(languageDirection() == 'ltr' ? 'ms-2' : 'me-2'); ?>"><?php echo e(__('Total brands to display should be between 3 to 20. Default is 9')); ?></small>
</div>
</div>
</div>
<?php echo $__env->make('cms::edit.sub.appearance', ['fields' => ['margin']], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('cms::pieces.submit-btn', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</form>
</div>
</div>
<?php /**PATH /home/picotech/domains/ecom1.picotech.app/public_html/Modules/CMS/Resources/views/edit/brands-template-v1.blade.php ENDPATH**/ ?>
|