Viewing file: 6a6c031d18b5ad299bda13d777e5d2b9f05434ed.php (6.88 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$allCategories = \Modules\CMS\Service\Homepage::getCategoryList()->pluck('name', 'id');
$component = isset($component) ? $component : null;
?>
<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(__('Category Type')); ?></dt>
</label>
<div class="col-sm-8">
<select type="text" class="col-sm-12 form-control category_type select3"
name="category_type">
<?php $__currentLoopData = \Modules\CMS\Service\Homepage::categoryOptions(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<Option <?php echo e($component && $component->category_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->category_type != 'selectedCategories' ? 'd-none' : ''); ?>">
<label class="col-sm-3 control-label"><?php echo e(__('Categories')); ?></label>
<div class="col-sm-8">
<select type="text" class="form-control select2" name="categories[]" multiple>
<?php if($component && is_array($component->categories)): ?>
<?php $__currentLoopData = $component->categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $selected): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if(isset($allCategories[$selected])): ?>
<Option selected value="<?php echo e($selected); ?>"><?php echo e($allCategories[$selected]); ?>
</Option>
<?php
unset($allCategories[$selected]);
?>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<?php $__currentLoopData = $allCategories; $__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-md-3 control-label">
<dt><?php echo e(__('Options')); ?></dt>
</label>
<div class="col-md-8">
<div class="row">
<div class="col-md-8">
<div class="form-group row product-count">
<label class="col-md-8 control-label"><?php echo e(__('Category Grid (Row X Col)')); ?></label>
<div class="col-sm-6 pr-1">
<input type="number" class="form-control product-row inputFieldDesign"
placeholder="<?php echo e(__('Rows')); ?>"
value="<?php echo e($component ? $component->row : ''); ?>" min="1"
max="12" name="row">
</div>
<div class="col-sm-6 pl-1">
<input type="number" class="form-control product-col inputFieldDesign"
placeholder="<?php echo e(__('Columns')); ?>"
value="<?php echo e($component ? $component->column : ''); ?>" min="1"
max="12" name="column">
</div>
<input type="hidden" name="max"
value="<?php echo e($component ? $component->max : ''); ?>" class="product-quantity">
</div>
<div class="mt-2">
<span class="badge badge-info mt-1"><?php echo e(__('Example')); ?></span>
<small
class="mt-1 <?php echo e(languageDirection() == 'ltr' ? 'ms-1' : 'me-1'); ?>"><?php echo e(__('Total categories will be rows x columns')); ?></small>
</div>
</div>
</div>
</div>
</div>
<?php echo $__env->make('cms::edit.sub.appearance', ['fields' => ['margin','width']], \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/category-template-v1.blade.php ENDPATH**/ ?>
|