⚝
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 :
d6c799bcd466a8bd715267d54ed9ba640348a753.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"> <div class="alert alert-danger none errorarea"> <ul id="errors"> </ul> </div> <h4><?php echo e(__('Add new Post')); ?></h4> <form method="post" id="basicform" action="<?php echo e(route('admin.post.update',$info->id)); ?>"> <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?> <div class="custom-form pt-20"> <div class="form-group"> <label for="name"><?php echo e(__('Post Title')); ?></label> <input type="text" placeholder="Post Title" name="title" class="form-control" id="name" value="<?php echo e($info->title); ?>"> </div> <div class="custom-form pt-20"> <div class="form-group"> <label for="slug"><?php echo e(__('Post Slug')); ?></label> <input type="text" placeholder="Post Title" name="slug" class="form-control" id="slug" value="<?php echo e($info->slug); ?>"> </div> </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(__('Post Content')); ?></label> <textarea name="content" class="form-control" cols="30" rows="10" placeholder="Enter Content" id="content" name="content"><?php echo $info->post->content; ?></textarea> </div> </div> </div> </div> <div class="card"> <div class="card-body"> <h4><?php echo e(__('Search Engine Optimization')); ?></h4> <div class="search-engine"> <h6 class="pt-15 page-title-seo" id="seotitle"><?php echo e($info->title); ?></h6> <a href="#" class="text-success" id="seourl">'<?php echo e(url('/').'/post/'.$info->slug); ?></a> <p id="seodescription"><?php echo e($info->meta->excerpt); ?></p> </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(0, $catArr); ?> <div class="cover-bar"></div> </div> </div> </div> </div> </div> <div class="single-area"> <div class="card sub"> <div class="card-body"> <h5><?php echo e(__('Image')); ?></h5> <hr> <a href="#" data-toggle="modal" data-target=".media-single" class="single-modal"> <?php if(empty($info->meta->preview)): ?> <img class="img-fluid" id="preview" src="<?php echo e(asset('admin/img/img/placeholder.png')); ?>" alt=""> <?php else: ?> <img class="img-fluid" id="preview" src="<?php echo e(asset($info->meta->preview)); ?>" alt=""> <?php endif; ?> </a> </div> </div> </div> <div class="single-area"> <div class="card sub"> <div class="card-body"> <h5><?php echo e(__('Tags')); ?></h5> <hr> <input type="text" name="tag" id="tags" class="form-control" value="<?php echo e($info->tags); ?>"> </div> </div> </div> <div class="single-area"> <div class="card sub"> <div class="card-body"> <h5><?php echo e(__('Comment Status')); ?></h5> <hr> <select class="form-control" name="comment_status"> <option value="1" <?php if($info->post->comment_status == 1): ?> selected="" <?php endif; ?>>Allowed Comment</option> <option value="0" <?php if($info->post->comment_status == 0): ?> selected="" <?php endif; ?>>Comment Not Allow</option> <option value="2" <?php if($info->post->comment_status == 2): ?> selected="" <?php endif; ?>>Disqus Comment</option> <option value="3" <?php if($info->post->comment_status == 3): ?> selected="" <?php endif; ?>>Facebook Comment</option> <option value="4" <?php if($info->post->comment_status == 4): ?> selected="" <?php endif; ?>>Custom Comment</option> </select> </div> </div> </div> </div> </div> <input type="hidden" name="type" value="0"> <input type="hidden" name="post_type" value="blog"> <input type="hidden" id="preview_input" name="preview" value="<?php echo e($info->meta->preview); ?>"> </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/bootstrap-tagsinput.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> (function ($) { "use strict"; $('#tags').tagsinput(); $('.use').on('click',function(){ $('#preview').attr('src',myradiovalue); $('#preview_input').val(myradiovalue); }); $('.use1').on('click',function(){ $('.multi-img').remove(); $('.gallary-src').remove(); $.each(mycheckboxvalue, function(index, value){ $(".gallary-img").append('<img class="gallary-src" src="' + value + '" />'); }); $('#gallary_input').val(mycheckboxvalue.toString()) }); $('#slug').on('input',function(){ $('#seotitle').html($('#slug').val()); let slug = $('#slug').val().replace(" ", "-"); $('#seourl').html('<?php echo e(url('/').'/post/'); ?>'+slug) }) $('#description').on('input',function(){ $('#seodescription').html($('#description').val()); }) })(jQuery); //response will assign this function function success(res){ Sweet('success','Post Updated') } function errosresponse(xhr){ $("#errors").html("<li class='text-danger'>"+xhr.responseJSON[0]+"</li>") } </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/resources/views/admin/posts/edit.blade.php ENDPATH**/ ?>