⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.26
Server IP:
15.204.235.159
Server:
Linux srv.techlup.co.ke 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
tech
/
www
/
script
/
storage
/
framework
/
views
/
View File Name :
756cdebaa26687e433bf934b83b138689061150d.php
<?php $__env->startSection('style'); ?> <link rel="stylesheet" href="<?php echo e(asset('admin/css/summernote.min.css')); ?>"> <link rel="stylesheet" href="<?php echo e(asset('admin/css/bootstrap-tagsinput.css')); ?>"> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="row"> <div class="col-lg-9"> <div class="card"> <div class="card-body"> <h4><?php echo e(__('Edit Service')); ?></h4> <form method="post" action="<?php echo e(route('admin.service.service.update',$info->id)); ?>" id="basicform"> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <div class="custom-form pt-20"> <div class="form-group"> <label for="title"><?php echo e(__('Service Title')); ?><span class="text-danger"><b>*</b></span></label> <input type="text" placeholder="Service Title" class="form-control" name="title" id="title" required="" value="<?php echo e($info->title); ?>"> </div> <div class="form-group"> <label for="slug"><?php echo e(__('Service Slug')); ?><span class="text-danger"><b>*</b></span></label> <input type="text" placeholder="Slug" class="form-control" name="slug" id="slug" required="" value="<?php echo e($info->slug); ?>"> </div> <div class="form-group"> <label for="excerpt"><?php echo e(__('Excerpt')); ?></label> <textarea name="excerpt" class="form-control" cols="30" rows="3" placeholder="short description" id="excerpt" maxlength="300" ><?php echo e($info->meta->excerpt); ?></textarea> </div> <div class="form-group"> <label for="content"><?php echo e(__('Service Page Content')); ?></label> <textarea name="content" class="form-control" cols="30" rows="10" placeholder="Enter Content" id="content" name="content"><?php echo $json->content; ?></textarea> </div> <div class="form-group"> <label >FAQ's</label> <table class="table table-bordered" id="dynamic_field"> <?php $i=20; ?> <?php $__currentLoopData = $json->faq; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=> $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $i++; ?> <tr class="row<?php echo e($i); ?>"> <td><input type="text" name="question[]" placeholder="Enter Question Name" class="form-control name_list" value="<?php echo e($key); ?>" /></td> </tr> <tr class="row<?php echo e($i); ?>"> <td><textarea class="form-control" placeholder="Enter Answer" name="answer[]"><?php echo e($row); ?></textarea></td> </tr> <tr class="row<?php echo e($i); ?>"> <td> <button type="button" name="remove" id="<?php echo e($i); ?>" class="btn btn_remove col-12">Remove</button> </td> </tr><br> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </table> <button type="button" name="add" id="add" class="btn btn-success col-12">Add More FAQ</button> </div> </div> </div> </div> </div> <div class="col-lg-3"> <div class="single-area"> <div class="card"> <div class="card-body"> <h5><?php echo e(__('Publish')); ?></h5> <hr> <div class="btn-publish"> <button type="submit" class="btn btn-save"><i class="fa fa-save"></i> <?php echo e(__('Save')); ?></button> </div> </div> </div> </div> <div class="single-area"> <div class="card sub"> <div class="card-body"> <h5><?php echo e(__('Status')); ?></h5> <hr> <select class="custom-select mr-sm-2" id="inlineFormCustomSelect" name="status"> <option value="1" <?php if($info->status==1): ?> selected="" <?php endif; ?>><?php echo e(__('Published')); ?></option> <option value="2" <?php if($info->status==2): ?> selected="" <?php endif; ?>><?php echo e(__('Draft')); ?></option> </select> </div> </div> </div> <?php echo adminLang($info->lang); ?> <div class="single-area"> <div class="card sub"> <div class="card-body"> <h5><?php echo e(__('Categories')); ?></h5> <hr> <div class="scroll-bar-wrap"> <div class="category-list"> <?php $catArr=[]; foreach ($info->categories as $row) { array_push($catArr, $row->id); } ?> <?php echo AdminCategoryUpdate(3, $catArr); ?> <div class="cover-bar"></div> </div> </div> </div> </div> </div> <div class="single-area"> <div class="card sub"> <div class="card-body"> <a href="#" data-toggle="modal" data-target=".media-single" class="single-modal" onclick="SetId('preview')"> <h5><?php echo e(__('Image')); ?></h5> <hr> <?php if (!empty($info->meta->preview)) { $preview= $info->meta->preview; } else{ $preview= 'admin/img/img/placeholder.png'; } ?> <img class="img-fluid preview" src="<?php echo e(asset($preview)); ?>" alt=""></a> </div> </div> </div> <div class="single-area"> <div class="card sub"> <div class="card-body"> <a href="#" data-toggle="modal" data-target=".media-single" class="single-modal" onclick="SetId('gallery')"> <h5><?php echo e(__('Banner')); ?></h5> <hr> <?php if (!empty($info->meta->gallery)) { $gallery= $info->meta->gallery; } else{ $gallery= 'admin/img/img/placeholder.png'; } ?> <img class="img-fluid gallery" src="<?php echo e(asset($gallery)); ?>" alt=""></a> </div> </div> </div> </div> <input type="hidden" name="type" value="4"> <input type="hidden" name="post_type" value="service"> <input type="hidden" class="preview" name="preview" value="<?php echo e($info->meta->preview); ?>"> <input type="hidden" class="gallery" name="gallery" value="<?php echo e($info->meta->gallery); ?>"> </form> <?php echo $__env->make('admin.media.mediamodal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('script'); ?> <script src="<?php echo e(asset('admin/js/summernote.min.js')); ?>"></script> <script src="<?php echo e(asset('admin/js/custom-summernote.min.js')); ?>"></script> <script src="<?php echo e(asset('admin/js/form.js')); ?>"></script> <script src="<?php echo e(asset('admin/js/media.js')); ?>"></script> <script> var getid=''; (function ($) { "use strict"; var i=1; $('#add').click(function(){ i++; $('#dynamic_field').append('<tr class="row'+i+'"><td>Question No '+ i +'</td></tr><tr class="row'+i+'"><td><input type="text" name="question[]" placeholder="Enter Question" class="form-control name_list" /></td></tr><tr class="row'+i+'"><td> <textarea class="form-control" placeholder="Enter Answer" name="answer[]"></textarea> </td></tr><tr class="row'+i+'"><td> <button type="button" name="remove" id="'+i+'" class="btn btn_remove col-12">Remove</button> </td></tr>'); }); $(document).on('click', '.btn_remove', function(){ var button_id = $(this).attr("id"); $('.row'+button_id+'').remove(); }); $('.use').on('click',function(){ $('.'+getid).attr('src',myradiovalue); $('.'+getid).val(myradiovalue); }); })(jQuery); //success response will assign here function success(res){ location.reload() } function SetId(id){ getid=id; } </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.backend.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/tech/staging.techlup.co.ke/files/script/am-content/Plugins/services/views/admin/services/service/edit.blade.php ENDPATH**/ ?>