Viewing file: aaa7c03c3d9d29b49bdc1507def4e09e.php (20.92 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div class="card"> <div class="card-header"><?php echo e(__('about')); ?></div> <div class="card-body">
<!-- Upload slider image --> <div class="row mb-2"> <div class="col-md-12"> <div class="card mb-4"> <div class="card-header"> <h3 class="card-title text-dark" style="line-height: 36px;"><?php echo e(__('upload_about_page_slider')); ?>
</h3> </div> <div class="card-body mb-2">
<div class="panel panel-default"> <div class="panel-body"> <form id="dropzoneFormAbout" class="dropzone" action="<?php echo e(route('about_store_gallery')); ?>"> <?php echo csrf_field(); ?> </form> <p class="text-black-50 text-center mt-2"><strong class="text-danger">Note:</strong> Image size width:120px, height:45px</p> <div align="center"> <button type="button" class="btn btn-success mt-3" id="submit-about-img"> <i class="fas fa-sync"></i> <?php echo e(__('update_about_slider')); ?>
</button> </div> </div> </div> <br /> <div class="panel panel-default"> <div class="panel-body" id="uploaded_image_about"> </div> </div> </div> </div> </div> </div>
<!-- Show slider image list --> <div class="row"> <div class="col-md-12"> <div class="card mb-4"> <div class="card-header"> <h3 class="card-title text-dark" style="line-height: 36px;"> <?php echo e(__('about_page_slider_image_list')); ?></h3> </div> <div class="card-body mb-2"> <table class="table table-bordered text-center mb-3"> <thead class="text-dark"> <tr> <th width="1%"><?php echo e(__('sort')); ?></th> <th width="10%"><?php echo e(__('slider_image')); ?></th> <th width="15%"><?php echo e(__('action')); ?></th> </tr> </thead> <tbody id="sortableAbout"> <?php $__empty_1 = true; $__currentLoopData = $aboutSliders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $aboutSlider): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?> <tr data-id="<?php echo e($aboutSlider->id); ?>"> <td> <div class="handle btn mt-0 text-left cursor-move"> <?php if (isset($component)) { $__componentOriginal1923d45318ee2377d8fddad6fe007ae2 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal1923d45318ee2377d8fddad6fe007ae2 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.svg.drag-icon','data' => ['fill' => 'black']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('svg.drag-icon'); ?> <?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(['fill' => 'black']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal1923d45318ee2377d8fddad6fe007ae2)): ?> <?php $attributes = $__attributesOriginal1923d45318ee2377d8fddad6fe007ae2; ?> <?php unset($__attributesOriginal1923d45318ee2377d8fddad6fe007ae2); ?> <?php endif; ?> <?php if (isset($__componentOriginal1923d45318ee2377d8fddad6fe007ae2)): ?> <?php $component = $__componentOriginal1923d45318ee2377d8fddad6fe007ae2; ?> <?php unset($__componentOriginal1923d45318ee2377d8fddad6fe007ae2); ?> <?php endif; ?> </div> </td> <td class="text-center"> <img src="<?php echo e($aboutSlider->ImageUrl); ?>" alt="" width="60px" height="60px"> </td> <td class="text-center"> <form action="<?php echo e(route('about_delete_gallery', $aboutSlider->id)); ?>" method="POST" class="d-inline"> <?php echo method_field('DELETE'); ?> <?php echo csrf_field(); ?> <button title="<?php echo e(__('delete_slider')); ?>" onclick="return confirm('<?php echo e(__('are_you_sure')); ?>?');" class="btn bg-danger"> <i class="fas fa-trash text-light"></i> </button> </form> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?> <tr> <td colspan="3" class="text-center"><?php echo e(__('nothing_found')); ?>.</td> </tr> <?php endif; ?> </tbody> </table> </div> </div> </div> </div>
<div class="card"> <div class="card-body">
<form class="form-horizontal" action="<?php echo e(route('admin.about.update')); ?>" method="POST" enctype="multipart/form-data"> <?php echo method_field('PUT'); ?> <?php echo csrf_field(); ?>
<div class="row">
<div class="col-md-6"> <div class="col-md-12"> <div class="form-group"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['name' => 'about_video_url','required' => 'false'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.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\Forms\Label::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($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?>
<div class=""> <input type="url" name="about_video_url" id="about_video_url" class="form-control" value="<?php echo e($aboutVideoUrl); ?>"> <?php $__errorArgs = ['about_video_url']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="text-danger" style="font-size: 13px;"><?php echo e($message); ?></span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> </div>
<div class="col-md-12"> <div class="form-group">
<div class="about-video-thumb-remove d-flex justify-content-between align-items-center "> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['name' => 'about_video_thumb','required' => 'false'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.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\Forms\Label::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($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?>
<button title="<?php echo e(__('delete_image')); ?>" onclick="deleteAboutBackgroundThumb('<?php echo e(urlencode($cms->about_video_thumb)); ?>');" class="bg-transparent border-0 text-decoration-underline nav-underline font-weight-bold text-info mb-2"> <u><?php echo e(__('delete_image')); ?></u> </button> </div>
<div class=""> <input type="file" class="form-control dropify" data-default-file="<?php echo e($aboutVideoThumb); ?>" name="about_video_thumb" autocomplete="image" data-allowed-file-extensions="jpg png jpeg" accept="image/png, image/jpg, image/jpeg"> <p class="text-black-50"><strong class="text-danger">Note:</strong> Please keep in mind this thubnail/poster is for the video url. If you don't like to upload video url, then please skip uploading thumbnail/poster!</p> </div> </div> </div> </div>
<div class="col-md-6"> <div class="form-group"> <?php if (isset($component)) { $__componentOriginal89b295b0763c93abe0143426334eb5d6 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal89b295b0763c93abe0143426334eb5d6 = $attributes; } ?> <?php $component = App\View\Components\Forms\Label::resolve(['name' => 'about_body','required' => 'false'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('forms.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\Forms\Label::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($__attributesOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $attributes = $__attributesOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__attributesOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <?php if (isset($__componentOriginal89b295b0763c93abe0143426334eb5d6)): ?> <?php $component = $__componentOriginal89b295b0763c93abe0143426334eb5d6; ?> <?php unset($__componentOriginal89b295b0763c93abe0143426334eb5d6); ?> <?php endif; ?> <div class=""> <textarea id="about_ck" class="form-control" name="about_body" placeholder="<?php echo e(__('write_the_answer')); ?>"><?php echo e($aboutcontent); ?></textarea> <?php $__errorArgs = ['about_body']; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?> <span class="text-danger" style="font-size: 13px;"><?php echo e($message); ?></span> <?php unset($message); if (isset($__messageOriginal)) { $message = $__messageOriginal; } endif; unset($__errorArgs, $__bag); ?> </div> </div> </div> </div>
<div class="row mb-3"> <div class="col-12 text-center"> <button type="submit" class="btn btn-success"> <i class="fas fa-sync"></i> <?php echo e(__('update_about_setting')); ?>
</button> </div> </div> </form>
<!-- About Video Thumb delete form --> <form id="deleteAboutBackgroundThumb" action="<?php echo e(route('about_video_thumb_delete')); ?>" method="POST" class="d-inline"> <?php echo method_field('DELETE'); ?> <?php echo csrf_field(); ?> </form>
</div> </div>
</div> </div>
<?php $__env->startSection('style'); ?> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.5.1/dropzone.css" /> <style> .dropzone { background: white; border-radius: 5px; border: 2px dashed rgb(0, 135, 247); border-image: none; max-width: 805px; margin-left: auto; margin-right: auto; } </style> <?php $__env->stopSection(); ?>
<?php $__env->startPush('script'); ?> <script type="text/javascript" src="//code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.5.1/dropzone.js"></script> <script type="text/javascript"> // In your Dropzone initialization script Dropzone.autoDiscover = false;
// Destroy existing Dropzone instances for About Setting if (Dropzone.instances.length > 0) { Dropzone.instances.forEach(function(instance) { // Disable autoDiscover to prevent automatic initialization Dropzone.autoDiscover = false; instance.destroy(); }); }
// Initialize Dropzone for About Setting var myDropzoneAbout = new Dropzone("#dropzoneFormAbout", { autoProcessQueue: false, uploadMultiple: true, parallelUploads: 10, thumbnailHeight: 120, thumbnailWidth: 120, maxFilesize: 3, filesizeBase: 1000, addRemoveLinks: true, renameFile: function(file) { var dt = new Date(); var time = dt.getTime(); return time + file.name; }, acceptedFiles: ".jpeg,.jpg,.png,.gif", init: function() { myDropzone = this; $('#submit-about-img').on('click', function() { myDropzone.processQueue(); });
this.on("complete", function() { if (this.getQueuedFiles().length == 0 && this.getUploadingFiles().length == 0) { var _this = this; _this.removeAllFiles(); console.log() } }); }, success: function(file, response) { window.location.href = response.url; toastr.success(response.message, 'Success'); }, error: function(file, response) { toastr.failed('Image upload failed', 'Failed'); } });
// sortable $(function() { $("#sortableAbout").sortable({ items: 'tr', cursor: 'move', opacity: 0.4, scroll: false, dropOnEmpty: false, update: function() { sendTaskOrderToServer('#sortableAbout tr'); }, classes: { "ui-sortable": "highlight" }, }); $("#sortableAbout").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('admin.about.slider.sorting')); ?>", data: { order: order, _token: '<?php echo e(csrf_token()); ?>' }, success: function(response) { toastr.success(response.message, 'Success'); } }); } }); </script>
<!-- About Video Thumb delete Script --> <script> function deleteAboutBackgroundThumb(encodedImage) { if (confirm('<?php echo e(__('are_you_sure')); ?>?')) { var deleteForm = document.getElementById('deleteAboutBackgroundThumb'); deleteForm.action = '<?php echo e(route('about_video_thumb_delete')); ?>?image=' + encodedImage;
// Submit the form deleteForm.submit(); } } </script> <!-- About Video Thumb delete Script --> <?php $__env->stopPush(); ?> <?php /**PATH E:\add listing 8-9-25\addListing\resources\views/components/backend/setting/cms/about-setting.blade.php ENDPATH**/ ?>
|