Viewing file: 8263f91d203c1a75af796dc326fe117b.php (19.68 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> <?php echo e(__('faq_category_list')); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> <div class="container-fluid"> <div class="row"> <div class="col-md-8"> <div class="card"> <div class="card-header"> <h3 class="card-title line-height-36"><?php echo e(__('faq_category_list')); ?></h3> </div> <div class=""> <div class="row p-4" id="sortable"> <?php $__empty_1 = true; $__currentLoopData = $faqCategories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $faq_category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <div class="ui-state-default col-12 col-sm-6 col-md-4" data-id="<?php echo e($faq_category->id); ?>"> <div class="card card-margin"> <div class="card-body pt-0"> <div class="widget-49"> <div class="widget-49-title-wrapper mt-4 items-align-center"> <div class="widget-49-date-pridmary"> <div> <i class="text--30px <?php echo e($faq_category->icon); ?>"></i> </div> </div> <div class="widget-49-meeting-info"> <span class="text-capitalize text--xl"> <?php echo e($faq_category->name); ?>
</span> <span class="widget-49-meeting-time -mt-5"> <?php echo e(date('M d, Y', strtotime($faq_category->created_at))); ?>
</span> </div> </div> <div class="widget-49-meeting-action"> <div class="handle btn-sm btn btn-success mt-0"> <i class="fas fa-hand-rock"></i> </div> <?php if(userCan('faq.update')): ?> <a href="<?php echo e(route('module.faq.category.edit', $faq_category->id)); ?>" class="btn btn-sm btn-outline-primary mr-1"> <i class="fas fa-edit"></i> </a> <?php endif; ?> <?php if(userCan('faq.delete')): ?> <form action="<?php echo e(route('module.faq.category.destroy', $faq_category->id)); ?>" method="POST" class="d-inline mt-2"> <?php echo method_field('DELETE'); ?> <?php echo csrf_field(); ?> <button data-toggle="tooltip" data-placement="top" title="<?php echo e(__('delete_tag')); ?>" onclick="return confirm('<?php echo e(__('are_you_sure_want_to_delete_this_item')); ?>')" class="btn btn-sm btn-outline-danger"> <i class="fas fa-trash"></i> </button> </form> <?php endif; ?> </div> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <div class="col-12 text-center"> <?php if (isset($component)) { $__componentOriginal29785112a59eec7800237cc87bc86e3e = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal29785112a59eec7800237cc87bc86e3e = $attributes; } ?> <?php $component = App\View\Components\NotFound::resolve(['route' => '','word' => 'Category'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('not-found'); ?> <?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\NotFound::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($__attributesOriginal29785112a59eec7800237cc87bc86e3e)): ?> <?php $attributes = $__attributesOriginal29785112a59eec7800237cc87bc86e3e; ?> <?php unset($__attributesOriginal29785112a59eec7800237cc87bc86e3e); ?> <?php endif; ?> <?php if (isset($__componentOriginal29785112a59eec7800237cc87bc86e3e)): ?> <?php $component = $__componentOriginal29785112a59eec7800237cc87bc86e3e; ?> <?php unset($__componentOriginal29785112a59eec7800237cc87bc86e3e); ?> <?php endif; ?> </div> <?php endif; ?> </div> </div> </div> </div> <div class="col-12 col-md-4"> <?php if(request()->routeIs('module.faq.category.edit')): ?> <div class="card"> <div class="card-header"> <h3 class="card-title line-height-36"><?php echo e(__('edit')); ?></h3> </div> <div class="card-body table-responsive"> <div class="container"> <form method="POST" action="<?php echo e(route('module.faq.category.update', $item->id)); ?>"> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <div class="form-group col-12"> <label class="col-form-label"> <?php echo e(__('name')); ?>
<small class="text-danger">*</small> </label> <input type="text" name="name" class="mr-5 form-control <?php $__errorArgs = ['name']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>" value="<?php echo e($item->name); ?>" placeholder="<?php echo e(__('name')); ?>"> <?php $__errorArgs = ['name']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="invalid-feedback" role="alert"><?php echo e($message); ?></span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> <div class="form-group col-12"> <label class="col-form-label"><?php echo e(__('icon')); ?>
<small class="text-danger">*</small> </label> <input type="hidden" name="icon" value="<?php echo e($item->icon); ?>" id="icon" class="<?php $__errorArgs = ['icon']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>" /> <div id="target"></div> <?php $__errorArgs = ['icon']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="invalid-feedback" role="alert"><?php echo e($message); ?></span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> <div class="text-center"> <button type="submit" class="btn btn-success"> <i class="fas fa-plus"></i> <?php echo e(__('update')); ?>
</button> </div> </form> </div> </div> </div> <?php else: ?> <div class="card"> <div class="card-header"> <h3 class="card-title line-height-36"><?php echo e(__('create')); ?></h3> </div> <div class="card-body table-responsive"> <div class="container"> <form method="POST" action="<?php echo e(route('module.faq.category.store')); ?>"> <?php echo csrf_field(); ?> <div class="form-group col-12"> <label class="col-form-label"> <?php echo e(__('name')); ?>
<small class="text-danger">*</small> </label> <input type="text" name="name" class="mr-5 form-control <?php $__errorArgs = ['name']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>" value="<?php echo e(old('name')); ?>" placeholder="<?php echo e(__('name')); ?>"> <?php $__errorArgs = ['name']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="invalid-feedback" role="alert"><?php echo e($message); ?></span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> <div class="form-group col-12"> <label class="col-form-label"><?php echo e(__('icon')); ?>
<small class="text-danger">*</small> </label> <input type="hidden" name="icon" value="<?php echo e(old('icon')); ?>" id="icon" class="<?php $__errorArgs = ['icon']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?>" /> <div id="target"></div> <?php $__errorArgs = ['icon']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="invalid-feedback" role="alert"><?php echo e($message); ?></span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> <div class="text-center"> <button type="submit" class="btn btn-success"> <i class="fas fa-plus"></i> <?php echo e(__('create')); ?>
</button> </div> </form> </div> </div> </div> <?php endif; ?> </div> </div> </div> <?php $__env->stopSection(); ?>
<?php $__env->startSection('style'); ?> <link rel="stylesheet" href="<?php echo e(asset('backend')); ?>/plugins/bootstrap-iconpicker/dist/css/bootstrap-iconpicker.min.css" /> <?php if (isset($component)) { $__componentOriginalab23c5cf28eaa91ea60ba8eb0512d9e1 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalab23c5cf28eaa91ea60ba8eb0512d9e1 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.simple-card-design','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('admin.simple-card-design'); ?> <?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([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalab23c5cf28eaa91ea60ba8eb0512d9e1)): ?> <?php $attributes = $__attributesOriginalab23c5cf28eaa91ea60ba8eb0512d9e1; ?> <?php unset($__attributesOriginalab23c5cf28eaa91ea60ba8eb0512d9e1); ?> <?php endif; ?> <?php if (isset($__componentOriginalab23c5cf28eaa91ea60ba8eb0512d9e1)): ?> <?php $component = $__componentOriginalab23c5cf28eaa91ea60ba8eb0512d9e1; ?> <?php unset($__componentOriginalab23c5cf28eaa91ea60ba8eb0512d9e1); ?> <?php endif; ?> <style> .text--xl { font-size: 30px; margin: 0; }
.-mt-5 { margin-top: -5px; }
.text--xl { font-size: 1.5rem !important; }
.text--30px { font-size: 30px; } </style> <?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?> <script src="<?php echo e(asset('backend')); ?>/plugins/jquery-ui/jquery-ui.min.js"></script>
<script> $(function() { $("#sortable").sortable({ opacity: 0.4, update: function() { sendTaskOrderToServer('.ui-state-default'); }, }); $("#sortable").disableSelection();
function sendTaskOrderToServer(selector) { var order = []; $(selector).each(function(index, element) { order.push({ id: $(this).attr('data-id'), position: index + 1 }); }); $.ajax({ type: "POST", dataType: "json", url: "<?php echo e(route('module.faq.category.updateOrder')); ?>", data: { order: order, _token: '<?php echo e(csrf_token()); ?>' }, success: function(response) { toastr.success(response.message, 'Success'); } }); } }); </script> <script type="text/javascript" src="<?php echo e(asset('backend')); ?>/plugins/bootstrap-iconpicker/dist/js/bootstrap-iconpicker.bundle.min.js"></script> <script type="text/javascript" src="<?php echo e(asset('backend')); ?>/plugins/bootstrap-iconpicker/dist/js/bootstrap-iconpicker.min.js"></script>
<script> $('#target').iconpicker({ align: 'left', // Only in div tag arrowClass: 'btn-danger', arrowPrevIconClass: 'fas fa-angle-left', arrowNextIconClass: 'fas fa-angle-right', cols: 11, footer: true, header: true, icon: "<?php echo e(request()->routeIs('module.faq.category.edit') ? $item->icon : 'fas fa-bomb'); ?>", iconset: 'fontawesome5', labelHeader: '{0} of {1} pages', labelFooter: '{0} - {1} of {2} icons', placement: 'bottom', // Only in button tag rows: 5, search: true, searchText: 'Search', selectedClass: 'btn-success', unselectedClass: '' });
$('#target').on('change', function(e) { $('#icon').val(e.icon) }); </script> <?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\add listing 8-9-25\addListing\Modules/Faq\Resources/views/faqcategory/index.blade.php ENDPATH**/ ?>
|