File manager - Edit - /home/asiatechinc/public_html/asiatech-websites/dynastyresort.com/storage/framework/views/17859451a5eaf06fd5e2f07b786a5d0e.php
Back
<?php $__env->startSection('title', 'Manage FAQ'); ?> <?php $__env->startSection('content'); ?> <?php if (isset($component)) { $__componentOriginalbd68cc00c17f03b66e133eecc4ef2be6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalbd68cc00c17f03b66e133eecc4ef2be6 = $attributes; } ?> <?php $component = App\View\Components\DashboardContainer::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('dashboard-container'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\DashboardContainer::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['container_header' => 'Manage FAQ']); ?> <?php if (isset($component)) { $__componentOriginal740c66ff9bbfcb19a96a45ba2fa42d64 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal740c66ff9bbfcb19a96a45ba2fa42d64 = $attributes; } ?> <?php $component = App\View\Components\Card::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('card'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Card::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php if (isset($component)) { $__componentOriginal45b0c9ba26fcd16a79034c21758ffbac = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal45b0c9ba26fcd16a79034c21758ffbac = $attributes; } ?> <?php $component = App\View\Components\CardHeader::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('card-header'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\CardHeader::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?>Add FAQ <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal45b0c9ba26fcd16a79034c21758ffbac)): ?> <?php $attributes = $__attributesOriginal45b0c9ba26fcd16a79034c21758ffbac; ?> <?php unset($__attributesOriginal45b0c9ba26fcd16a79034c21758ffbac); ?> <?php endif; ?> <?php if (isset($__componentOriginal45b0c9ba26fcd16a79034c21758ffbac)): ?> <?php $component = $__componentOriginal45b0c9ba26fcd16a79034c21758ffbac; ?> <?php unset($__componentOriginal45b0c9ba26fcd16a79034c21758ffbac); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal3524d3ba9aa939234ad194e581be16a5 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal3524d3ba9aa939234ad194e581be16a5 = $attributes; } ?> <?php $component = App\View\Components\CardBody::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('card-body'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\CardBody::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php if (isset($component)) { $__componentOriginal314d63240b25fefade26e0a3d7cb8cb9 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal314d63240b25fefade26e0a3d7cb8cb9 = $attributes; } ?> <?php $component = App\View\Components\FormElement::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('form-element'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\FormElement::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['method' => 'POST','enctype' => 'multipart/form-data','id' => 'submitForm','action' => 'javascript:']); ?> <?php if (isset($component)) { $__componentOriginalc2fcfa88dc54fee60e0757a7e0572df1 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalc2fcfa88dc54fee60e0757a7e0572df1 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.input','data' => ['type' => 'hidden','title' => 'id','id' => 'id','value' => '','name' => 'id']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('input'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['type' => 'hidden','title' => 'id','id' => 'id','value' => '','name' => 'id']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalc2fcfa88dc54fee60e0757a7e0572df1)): ?> <?php $attributes = $__attributesOriginalc2fcfa88dc54fee60e0757a7e0572df1; ?> <?php unset($__attributesOriginalc2fcfa88dc54fee60e0757a7e0572df1); ?> <?php endif; ?> <?php if (isset($__componentOriginalc2fcfa88dc54fee60e0757a7e0572df1)): ?> <?php $component = $__componentOriginalc2fcfa88dc54fee60e0757a7e0572df1; ?> <?php unset($__componentOriginalc2fcfa88dc54fee60e0757a7e0572df1); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalc2fcfa88dc54fee60e0757a7e0572df1 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalc2fcfa88dc54fee60e0757a7e0572df1 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.input','data' => ['type' => 'hidden','title' => 'action','id' => 'action','value' => 'insert','name' => 'action']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('input'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['type' => 'hidden','title' => 'action','id' => 'action','value' => 'insert','name' => 'action']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalc2fcfa88dc54fee60e0757a7e0572df1)): ?> <?php $attributes = $__attributesOriginalc2fcfa88dc54fee60e0757a7e0572df1; ?> <?php unset($__attributesOriginalc2fcfa88dc54fee60e0757a7e0572df1); ?> <?php endif; ?> <?php if (isset($__componentOriginalc2fcfa88dc54fee60e0757a7e0572df1)): ?> <?php $component = $__componentOriginalc2fcfa88dc54fee60e0757a7e0572df1; ?> <?php unset($__componentOriginalc2fcfa88dc54fee60e0757a7e0572df1); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginald26c9ce3d722d3f3b68d1e579c543b1b = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginald26c9ce3d722d3f3b68d1e579c543b1b = $attributes; } ?> <?php $component = App\View\Components\ContentDiv::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('content-div'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\ContentDiv::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['heading' => 'Add FAQ']); ?> <div id="itinerarySection"> <div class="row itinerary-block" id="itinerary-block-"> <?php if (isset($component)) { $__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f = $attributes; } ?> <?php $component = App\View\Components\InputWithLabelElement::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('input-with-label-element'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\InputWithLabelElement::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['required' => true,'type' => 'text','name' => 'questions[]','placeholder' => 'Ask Questions','label' => 'Question']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f)): ?> <?php $attributes = $__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f; ?> <?php unset($__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f); ?> <?php endif; ?> <?php if (isset($__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f)): ?> <?php $component = $__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f; ?> <?php unset($__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal18161117c06f3e17ec26fb8524374b15 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal18161117c06f3e17ec26fb8524374b15 = $attributes; } ?> <?php $component = App\View\Components\TextAreaWithLabel::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('text-area-with-label'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\TextAreaWithLabel::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['required' => true,'name' => 'answers[]','placeholder' => 'Write Answer','label' => 'Write Answer']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal18161117c06f3e17ec26fb8524374b15)): ?> <?php $attributes = $__attributesOriginal18161117c06f3e17ec26fb8524374b15; ?> <?php unset($__attributesOriginal18161117c06f3e17ec26fb8524374b15); ?> <?php endif; ?> <?php if (isset($__componentOriginal18161117c06f3e17ec26fb8524374b15)): ?> <?php $component = $__componentOriginal18161117c06f3e17ec26fb8524374b15; ?> <?php unset($__componentOriginal18161117c06f3e17ec26fb8524374b15); ?> <?php endif; ?> <div class="col-md-4 mt-3"> <label class="form-check-label"> <input type="checkbox" class="form-check-input" id="show_on_home" name="show_on_home" value="1"> Show on Home Page </label> </div> </div> </div> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginald26c9ce3d722d3f3b68d1e579c543b1b)): ?> <?php $attributes = $__attributesOriginald26c9ce3d722d3f3b68d1e579c543b1b; ?> <?php unset($__attributesOriginald26c9ce3d722d3f3b68d1e579c543b1b); ?> <?php endif; ?> <?php if (isset($__componentOriginald26c9ce3d722d3f3b68d1e579c543b1b)): ?> <?php $component = $__componentOriginald26c9ce3d722d3f3b68d1e579c543b1b; ?> <?php unset($__componentOriginald26c9ce3d722d3f3b68d1e579c543b1b); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginalaec4e6c11b019d144a9ab2982f3b684f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalaec4e6c11b019d144a9ab2982f3b684f = $attributes; } ?> <?php $component = App\View\Components\FormButtons::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?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 && $constructor = (new ReflectionClass(App\View\Components\FormButtons::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalaec4e6c11b019d144a9ab2982f3b684f)): ?> <?php $attributes = $__attributesOriginalaec4e6c11b019d144a9ab2982f3b684f; ?> <?php unset($__attributesOriginalaec4e6c11b019d144a9ab2982f3b684f); ?> <?php endif; ?> <?php if (isset($__componentOriginalaec4e6c11b019d144a9ab2982f3b684f)): ?> <?php $component = $__componentOriginalaec4e6c11b019d144a9ab2982f3b684f; ?> <?php unset($__componentOriginalaec4e6c11b019d144a9ab2982f3b684f); ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal314d63240b25fefade26e0a3d7cb8cb9)): ?> <?php $attributes = $__attributesOriginal314d63240b25fefade26e0a3d7cb8cb9; ?> <?php unset($__attributesOriginal314d63240b25fefade26e0a3d7cb8cb9); ?> <?php endif; ?> <?php if (isset($__componentOriginal314d63240b25fefade26e0a3d7cb8cb9)): ?> <?php $component = $__componentOriginal314d63240b25fefade26e0a3d7cb8cb9; ?> <?php unset($__componentOriginal314d63240b25fefade26e0a3d7cb8cb9); ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal3524d3ba9aa939234ad194e581be16a5)): ?> <?php $attributes = $__attributesOriginal3524d3ba9aa939234ad194e581be16a5; ?> <?php unset($__attributesOriginal3524d3ba9aa939234ad194e581be16a5); ?> <?php endif; ?> <?php if (isset($__componentOriginal3524d3ba9aa939234ad194e581be16a5)): ?> <?php $component = $__componentOriginal3524d3ba9aa939234ad194e581be16a5; ?> <?php unset($__componentOriginal3524d3ba9aa939234ad194e581be16a5); ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal740c66ff9bbfcb19a96a45ba2fa42d64)): ?> <?php $attributes = $__attributesOriginal740c66ff9bbfcb19a96a45ba2fa42d64; ?> <?php unset($__attributesOriginal740c66ff9bbfcb19a96a45ba2fa42d64); ?> <?php endif; ?> <?php if (isset($__componentOriginal740c66ff9bbfcb19a96a45ba2fa42d64)): ?> <?php $component = $__componentOriginal740c66ff9bbfcb19a96a45ba2fa42d64; ?> <?php unset($__componentOriginal740c66ff9bbfcb19a96a45ba2fa42d64); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal740c66ff9bbfcb19a96a45ba2fa42d64 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal740c66ff9bbfcb19a96a45ba2fa42d64 = $attributes; } ?> <?php $component = App\View\Components\Card::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('card'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Card::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php if (isset($component)) { $__componentOriginal45b0c9ba26fcd16a79034c21758ffbac = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal45b0c9ba26fcd16a79034c21758ffbac = $attributes; } ?> <?php $component = App\View\Components\CardHeader::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('card-header'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\CardHeader::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?>Our FAQ Data <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal45b0c9ba26fcd16a79034c21758ffbac)): ?> <?php $attributes = $__attributesOriginal45b0c9ba26fcd16a79034c21758ffbac; ?> <?php unset($__attributesOriginal45b0c9ba26fcd16a79034c21758ffbac); ?> <?php endif; ?> <?php if (isset($__componentOriginal45b0c9ba26fcd16a79034c21758ffbac)): ?> <?php $component = $__componentOriginal45b0c9ba26fcd16a79034c21758ffbac; ?> <?php unset($__componentOriginal45b0c9ba26fcd16a79034c21758ffbac); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal3524d3ba9aa939234ad194e581be16a5 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal3524d3ba9aa939234ad194e581be16a5 = $attributes; } ?> <?php $component = App\View\Components\CardBody::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('card-body'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\CardBody::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php if (isset($component)) { $__componentOriginalb539fdd4bceece4a667dd360eb69c7ae = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalb539fdd4bceece4a667dd360eb69c7ae = $attributes; } ?> <?php $component = App\View\Components\DataTable::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('data-table'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\DataTable::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalb539fdd4bceece4a667dd360eb69c7ae)): ?> <?php $attributes = $__attributesOriginalb539fdd4bceece4a667dd360eb69c7ae; ?> <?php unset($__attributesOriginalb539fdd4bceece4a667dd360eb69c7ae); ?> <?php endif; ?> <?php if (isset($__componentOriginalb539fdd4bceece4a667dd360eb69c7ae)): ?> <?php $component = $__componentOriginalb539fdd4bceece4a667dd360eb69c7ae; ?> <?php unset($__componentOriginalb539fdd4bceece4a667dd360eb69c7ae); ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal3524d3ba9aa939234ad194e581be16a5)): ?> <?php $attributes = $__attributesOriginal3524d3ba9aa939234ad194e581be16a5; ?> <?php unset($__attributesOriginal3524d3ba9aa939234ad194e581be16a5); ?> <?php endif; ?> <?php if (isset($__componentOriginal3524d3ba9aa939234ad194e581be16a5)): ?> <?php $component = $__componentOriginal3524d3ba9aa939234ad194e581be16a5; ?> <?php unset($__componentOriginal3524d3ba9aa939234ad194e581be16a5); ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal740c66ff9bbfcb19a96a45ba2fa42d64)): ?> <?php $attributes = $__attributesOriginal740c66ff9bbfcb19a96a45ba2fa42d64; ?> <?php unset($__attributesOriginal740c66ff9bbfcb19a96a45ba2fa42d64); ?> <?php endif; ?> <?php if (isset($__componentOriginal740c66ff9bbfcb19a96a45ba2fa42d64)): ?> <?php $component = $__componentOriginal740c66ff9bbfcb19a96a45ba2fa42d64; ?> <?php unset($__componentOriginal740c66ff9bbfcb19a96a45ba2fa42d64); ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalbd68cc00c17f03b66e133eecc4ef2be6)): ?> <?php $attributes = $__attributesOriginalbd68cc00c17f03b66e133eecc4ef2be6; ?> <?php unset($__attributesOriginalbd68cc00c17f03b66e133eecc4ef2be6); ?> <?php endif; ?> <?php if (isset($__componentOriginalbd68cc00c17f03b66e133eecc4ef2be6)): ?> <?php $component = $__componentOriginalbd68cc00c17f03b66e133eecc4ef2be6; ?> <?php unset($__componentOriginalbd68cc00c17f03b66e133eecc4ef2be6); ?> <?php endif; ?> <?php $__env->startSection('script'); ?> <?php echo $__env->make('Dashboard.include.dataTablesScript', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <script type="text/javascript"> let table; $(function () { table = $('.data-table').DataTable({ processing: true, serverSide: true, scrollX: true, ajax: { url: "<?php echo e(route('getFaq')); ?>", type: "POST", data: { _token: "<?php echo e(csrf_token()); ?>" // CSRF token is included here }, error: function (xhr, status, error) { console.error("AJAX Error:", xhr.responseText); alert("Error loading data. Check the console for details."); } }, columns: [ { data: "DT_RowIndex", orderable: false, searchable: false, title: "Sr. No." }, { data: 'questions', name: 'questions', orderable: false, searchable: false, title: 'Questions' }, { data: 'answers', name: 'answers', orderable: false, searchable: false, title: 'Answers' }, { data: 'action', name: 'action', orderable: false, searchable: false, title: 'Actions' } ], order: [[1, "desc"]] }); }); function addNewItineraryBlock() { const blockId = `itinerary-block-${Date.now()}`; const newBlock = ` <div class="row itinerary-block" id="${blockId}"> <?php if (isset($component)) { $__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f = $attributes; } ?> <?php $component = App\View\Components\InputWithLabelElement::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('input-with-label-element'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\InputWithLabelElement::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['type' => 'text','name' => 'questions[]','placeholder' => 'Question','label' => 'Question']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f)): ?> <?php $attributes = $__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f; ?> <?php unset($__attributesOriginal955b544bf7ab3ca59308a70f7ba2dd6f); ?> <?php endif; ?> <?php if (isset($__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f)): ?> <?php $component = $__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f; ?> <?php unset($__componentOriginal955b544bf7ab3ca59308a70f7ba2dd6f); ?> <?php endif; ?> <?php if (isset($component)) { $__componentOriginal18161117c06f3e17ec26fb8524374b15 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal18161117c06f3e17ec26fb8524374b15 = $attributes; } ?> <?php $component = App\View\Components\TextAreaWithLabel::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('text-area-with-label'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\TextAreaWithLabel::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['name' => 'answers[]','placeholder' => 'Write Answer','label' => 'Write Answer']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal18161117c06f3e17ec26fb8524374b15)): ?> <?php $attributes = $__attributesOriginal18161117c06f3e17ec26fb8524374b15; ?> <?php unset($__attributesOriginal18161117c06f3e17ec26fb8524374b15); ?> <?php endif; ?> <?php if (isset($__componentOriginal18161117c06f3e17ec26fb8524374b15)): ?> <?php $component = $__componentOriginal18161117c06f3e17ec26fb8524374b15; ?> <?php unset($__componentOriginal18161117c06f3e17ec26fb8524374b15); ?> <?php endif; ?> <div class="col-md-2 col-sm-12 text-center"> <?php if (isset($component)) { $__componentOriginald0f1fd2689e4bb7060122a5b91fe8561 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginald0f1fd2689e4bb7060122a5b91fe8561 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.button','data' => ['type' => 'button','onclick' => 'removeBlock(\'${blockId}\')','class' => 'btn btn-danger btn-icon mt-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('button'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes(['type' => 'button','onclick' => 'removeBlock(\'${blockId}\')','class' => 'btn btn-danger btn-icon mt-4']); ?>- <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginald0f1fd2689e4bb7060122a5b91fe8561)): ?> <?php $attributes = $__attributesOriginald0f1fd2689e4bb7060122a5b91fe8561; ?> <?php unset($__attributesOriginald0f1fd2689e4bb7060122a5b91fe8561); ?> <?php endif; ?> <?php if (isset($__componentOriginald0f1fd2689e4bb7060122a5b91fe8561)): ?> <?php $component = $__componentOriginald0f1fd2689e4bb7060122a5b91fe8561; ?> <?php unset($__componentOriginald0f1fd2689e4bb7060122a5b91fe8561); ?> <?php endif; ?> </div> </div>`; document.getElementById('itinerarySection').insertAdjacentHTML('beforeend', newBlock); } function removeBlock(blockId) { document.getElementById(blockId).remove(); } $("#submitForm").on("submit", function () { var form = new FormData(this); $.ajax({ type: 'POST', url: '<?php echo e(route('saveFaq')); ?>', data: form, cache: false, contentType: false, processData: false, success: function (response) { if (response.status) { successMessage(response.message, true); } else { errorMessage(response.message); } }, error: function (xhr) { if (xhr.status === 422) { const errors = xhr.responseJSON.errors; const allMessages = Object.values(errors).flat().join('<br>'); errorMessage(allMessages); } else { errorMessage("Something went wrong"); } }, failure: function (response) { errorMessage(response.message); } }); }); $(document).on("click", ".edit", function () { let row = $.parseJSON(atob($(this).data("row"))); if (row.id) { $("#action").val("update"); $("#id").val(row.id); $("button[onclick='addNewItineraryBlock()']").hide(); // Set values $("input[name='questions[]']").val(row.questions); $("textarea[name='answers[]']").val(row.answers); // ✅ AUTO CHECK / UNCHECK if (row.show_on_home == 1) { $("#show_on_home").prop("checked", true); } else { $("#show_on_home").prop("checked", false); } scrollToDiv(); } else { errorMessage("Something went wrong."); } }); function Disable(id) { changeAction(id, "disable", "This item will be disabled!", "Yes, disable it!"); } function Enable(id) { changeAction(id, "enable", "This item will be enabled!", "Yes, enable it!"); } function changeAction(id, action, text, confirmButtonText) { if (id) { Swal.fire({ title: 'Are you sure?', text: text, icon: 'warning', showCancelButton: true, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33', confirmButtonText: confirmButtonText }).then((result) => { if (result.isConfirmed) { $.ajax({ type: 'POST', url: '<?php echo e(route('saveFaq')); ?>', data: { id: id, action: action, '_token': '<?php echo e(csrf_token()); ?>' }, success: function (response) { if (response.status) { successMessage(response.message, true); table.ajax.reload(); } else { errorMessage(response.message); } }, failure: function (response) { errorMessage(response.message); } }); } }); } else { errorMessage("Something went wrong. Code 102"); } } </script> <?php $__env->stopSection(); ?> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.dashboardLayout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/asiatechinc/public_html/asiatech-websites/dynastyresort.com/resources/views/Dashboard/Pages/manageFaq.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings