Viewing file: cb62bd218f36fe8aefafec0c5f0830f6aaea0429.php (5.27 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$component = isset($component) ? $component : null;
$allBlogs = \Modules\CMS\Service\Homepage::getBlogsList();
?>
<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 require">
<dt><?php echo e(__('Title')); ?></dt>
</label>
<div class="col-sm-8">
<input type="text" class="form-control section_name inputFieldDesign crequired" name="title" id="title"
required value="<?php echo e($component ? $component->title : ''); ?>">
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 control-label require">
<dt><?php echo e(__('Blog Type')); ?></dt>
</label>
<div class="col-sm-8">
<select type="text" required class="form-control crequired select3" name="blog_type"
id="blog_type">
<?php $__currentLoopData = \Modules\CMS\Service\Homepage::blogsOptions(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option <?php echo e($component && $component->blog_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->blog_type == 'selectedBlogs' ? '' : 'd-none'); ?>">
<label class="col-sm-3 control-label">
<dt><?php echo e(__('Blogs')); ?></dt>
</label>
<div class="col-sm-8">
<select type="text" class="form-control select2" name="blogs[]" multiple>
<?php if($component && is_array($component->blogs)): ?>
<?php $__currentLoopData = $component->blogs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $selected): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if(isset($allBlogs[$selected])): ?>
<Option selected value="<?php echo e($selected); ?>"><?php echo e($allBlogs[$selected]); ?>
</Option>
<?php
unset($allBlogs[$selected]);
?>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<?php $__currentLoopData = $allBlogs; $__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 require">
<dt><?php echo e(__('No. of blogs to show')); ?></dt>
</label>
<div class="col-sm-8">
<input type="number" min="1" max="30" class="form-control crequired inputFieldDesign" name="blog_limit"
required value="<?php echo e($component ? $component->blog_limit : 3); ?>">
<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 blogs to display should be between 1 to 30. Default is 10')); ?></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/blogs-template-v1.blade.php ENDPATH**/ ?>
|