Viewing file: 4c60a032e041570e4e5d87f6af8b06ef27e246d8.php (5.73 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$productTypes = \Modules\CMS\Service\Homepage::productTypes();
$component = isset($component) ? $component : null;
$selectedTypes = $component ? $component->disp_categories : 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'])); ?>" novalidate data-type="component" method="post"
class="component_form form-parent silent-form">
<?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(__('Categories')); ?></dt>
</label>
<div class="col-sm-8">
<select name="disp_categories[]" multiple="multiple" class="form-control select2 dcat">
<?php if($selectedTypes): ?>
<?php $__currentLoopData = $selectedTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option selected value="<?php echo e($category); ?>"><?php echo e($productTypes[$category]); ?>
</option>
<?php
unset($productTypes[$category]);
?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<?php $__currentLoopData = $productTypes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if($key != 'queryProducts'): ?>
<option value="<?php echo e($key); ?>"><?php echo e($category); ?></option>
<?php endif; ?>
<?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(__('Product 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(__('Note')); ?></span>
<small class="mt-1 <?php echo e(languageDirection() == 'ltr' ? 'ms-1' : 'me-1'); ?>"><?php echo e(__('Total products will be rows x columns')); ?></small>
</div>
</div>
</div>
</div>
</div>
<?php echo $__env->make('cms::edit.sub.appearance', ['fields' => ['margin', 'card_height']], \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/product-tabs-grid-template-v1.blade.php ENDPATH**/ ?>
|