Files
rohini-web/storage2/framework/views/61ee260b5e0dad41849d4f869200fdd1.php
2025-12-28 12:16:05 +05:45

62 lines
3.2 KiB
PHP

<?php echo e(html()->form('POST', route('faq.store'))->class('needs-validation')->attributes(['novalidate'])->open()); ?>
<?php if(isset($faq)): ?>
<?php echo e(html()->hidden('id', $faq->id)); ?>
<?php endif; ?>
<div class="card-body">
<div class="row">
<div class="col-sm-12">
<div class="mb-3">
<?php echo e(html()->label('Title')->for('title')); ?>
<?php echo e(html()->span('*')->class('text-danger')); ?>
<?php echo e(html()->text('title')->value($faq->title ?? old('title'))->class('form-control')->placeholder('Enter Title')->required()); ?>
<?php echo e(html()->div('Please enter a title.')->class('invalid-feedback')); ?>
</div>
<div class="mb-3">
<?php echo e(html()->label('Content')->for('description')); ?>
<?php echo e(html()->textarea('description')->value($faq->description ?? old('description'))->class('form-control')->placeholder('Enter Content')->rows(5)); ?>
</div>
<div class="mb-3">
<?php echo e(html()->label('Category')->class('form-label')->for('category_id')); ?>
<?php echo e(html()->select('category_id', $categoryOptions)->value($faq->category_id ?? old('category_id'))->class('form-select choices-select')->placeholder('Select')); ?>
</div>
</div>
<?php if (isset($component)) { $__componentOriginal4472fe0a558b38a919fed94c8472a9fd = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal4472fe0a558b38a919fed94c8472a9fd = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.form-buttons','data' => ['href' => route('faq.index'),'label' => isset($faq) ? 'Update' : 'Create']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('form-buttons'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('faq.index')),'label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(isset($faq) ? 'Update' : 'Create')]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal4472fe0a558b38a919fed94c8472a9fd)): ?>
<?php $attributes = $__attributesOriginal4472fe0a558b38a919fed94c8472a9fd; ?>
<?php unset($__attributesOriginal4472fe0a558b38a919fed94c8472a9fd); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal4472fe0a558b38a919fed94c8472a9fd)): ?>
<?php $component = $__componentOriginal4472fe0a558b38a919fed94c8472a9fd; ?>
<?php unset($__componentOriginal4472fe0a558b38a919fed94c8472a9fd); ?>
<?php endif; ?>
</div>
</div>
<?php echo e(html()->form()->close()); ?>
<?php /**PATH /home/rohiniedu/public_html/Modules/CCMS/resources/views/faq/add-faq-form.blade.php ENDPATH**/ ?>