⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.219
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 :
fe1596a5ce53d294cc76f7acd0d3ceb46253415b.php
<?php $__env->startSection('content'); ?> <div class="card" > <div class="card-body"> <div class="row mb-30"> <div class="col-lg-6"> <h4><?php echo e(__('Comment List')); ?></h4> </div> <div class="col-lg-6 text-right"> <a href="<?php echo e(route('admin.dsiqus.settings')); ?>" class="btn btn-primary" ><?php echo e(__('Disqus Comment Settings')); ?></a> </div> </div> <div class="cart-filter mb-20"> <a href="<?php echo e(route('admin.comment.index')); ?>">All <span>(<?php echo e(App\Comment::where('p_id',null)->count()); ?>)</span></a> <a href="?qry=1"><?php echo e(__('Approved')); ?> <span>(<?php echo e(App\Comment::where('status',1)->where('p_id',null)->count()); ?>)</span></a> <a href="?qry=replyed"><?php echo e(__('Replyed')); ?> <span>(<?php echo e(App\Comment::where('p_id',null)->where('status',4)->count()); ?>)</span></a> <a href="?qry=adminreplyed"><?php echo e(__('Admin Replyed')); ?> <span>(<?php echo e(App\Comment::where('p_id','!=',null)->where('status',4)->count()); ?>)</span></a> <a href="?qry=2"><?php echo e(__('Pending')); ?> <span>(<?php echo e(App\Comment::where('status',2)->where('p_id',null)->count()); ?>)</span></a> <a href="?qry=3"><?php echo e(__('Unapproved')); ?> <span>(<?php echo e(App\Comment::where('status',3)->where('p_id',null)->count()); ?>)</span></a> <a href="?qry=trash" class="trash"><?php echo e(__('Trash')); ?> <span>(<?php echo e(App\Comment::where('status',0)->where('p_id',null)->count()); ?>)</span></a> </div> <div class="card-action-filter"> <form method="post" id="basicform" action="<?php echo e(route('admin.comments.destroy')); ?>"> <?php echo csrf_field(); ?> <div class="row"> <div class="col-lg-6"> <div class="d-flex"> <div class="single-filter"> <div class="form-group"> <select class="form-control" name="status"> <option><?php echo e(__('Select Action')); ?></option> <option value="1"><?php echo e(__('Approved')); ?></option> <option value="3"><?php echo e(__('Unapproved')); ?></option> <?php if($status != 0): ?> <option value="0"><?php echo e(__('Move to Trash')); ?></option> <?php endif; ?> <?php if($status==0): ?> <option value="delete"><?php echo e(__('Delete Permanently')); ?></option> <?php endif; ?> </select> </div> </div> <div class="single-filter"> <button type="submit" class="btn"><?php echo e(__('Apply')); ?></button> </div> </div> </div> <div class="col-lg-6"> <div class="single-filter f-right"> <div class="form-group"> <input type="text" id="data_search" class="form-control" placeholder="Enter Value"> </div> </div> </div> </div> </div> <div class="table-responsive custom-table"> <table class="table"> <thead> <tr> <th class="am-select"> <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input checkAll" id="customCheck12"> <label class="custom-control-label checkAll" for="customCheck12"></label> </div> </th> <th class="am-title"><?php echo e(__('Author')); ?></th> <th class="am-title"><?php echo e(__('Comment')); ?></th> <th class="am-title"><?php echo e(__('Status')); ?></th> <th class="am-title"><?php echo e(__('Submitted On')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $comments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $comment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <th> <div class="custom-control custom-checkbox"> <input type="checkbox" name="ids[]" class="custom-control-input" id="customCheck<?php echo e($comment->id); ?>" value="<?php echo e($comment->id); ?>"> <label class="custom-control-label" for="customCheck<?php echo e($comment->id); ?>"></label> </div> </th> <td><?php if($comment->auth_id != null): ?> <?php echo e(App\User::where('id',$comment->auth_id)->first()->name); ?> <?php endif; ?></td> <td> <?php echo e($comment->comment); ?> <div class="hover"> <?php if($comment->status != 4): ?> <a href="<?php echo e(route('admin.comment.show',$comment->id)); ?>"><?php echo e(__('Reply')); ?></a> <?php endif; ?> <a href="<?php echo e(url('/post/'.$comment->term->slug)); ?>" target="_blank" class="last"><?php echo e(__('View')); ?></a> </div> </td> <td><?php if($comment->status==1): ?> <?php echo e(__('Approved')); ?> <?php elseif($comment->status==2): ?> <?php echo e(__('Pending')); ?> <?php elseif($comment->status==3): ?> <?php echo e(__('Unapproved')); ?> <?php elseif($comment->status == 4): ?> <?php echo e(__('Replyed')); ?> <?php else: ?> <?php echo e(__('Trash')); ?> <?php endif; ?></td> <td><?php echo e(__('Last Modified')); ?> <div class="date"> <?php echo e($comment->created_at->diffForHumans()); ?> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </form> <tfoot> <tr> <th class="am-select"> <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input checkAll" id="customCheck12"> <label class="custom-control-label checkAll" for="customCheck12"></label> </div> </th> <th class="am-title"><?php echo e(__('Author')); ?></th> <th class="am-title"><?php echo e(__('Comment')); ?></th> <th class="am-title"><?php echo e(__('Status')); ?></th> <th class="am-title"><?php echo e(__('Submitted On')); ?></th> </tr> </tfoot> </table> <?php echo e($comments->links()); ?> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('script'); ?> <script src="<?php echo e(asset('admin/js/form.js')); ?>"></script> <script type="text/javascript"> "use strict"; //response function function success(res){ location.reload(); } </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/comment/index.blade.php ENDPATH**/ ?>