File: /home/armgroup/libs/storage/framework/views/e16bf608f6bb745faf22bd3dc9a0aa2ddc391838.php
<?php $__env->startSection('footer'); ?>
<script>
$(document).on('click', '.showComment', function(event) {
event.preventDefault();
$('.modal-body').html($(this).data('comment'));
$('#commentModal').modal('show');
});
</script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="container my-5 body-content">
<div class="row">
<div class="col-lg-3 col-sm-12">
<?php echo $__env->make('account.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
<div class="col-lg-9 col-sm-12">
<div class="card">
<h5 class="card-header"><?php echo e(__('Comments')); ?></h5>
<div class="card-body">
<table class="table table-sm">
<thead class="thead-dark">
<tr>
<th scope="col"><?php echo e(__('Comment')); ?></th>
<th scope="col"><?php echo e(__('Status')); ?></th>
<th scope="col"><?php echo e(__('Date')); ?></th>
<th scope="col"><?php echo e(__('Actions')); ?></th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $comments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $comment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e(words($comment->comment, 7)); ?></td>
<td>
<span class="badge bg-<?php echo e(\App\Models\Comment::STATUS_COLOR[$comment->status]); ?>">
<?php echo e(__(\App\Models\Comment::STATUS_TRANSLATE[$comment->status])); ?>
</span>
</td>
<td><?php echo e(to_persian_numbers(jdate($comment->created_at))); ?></td>
<td>
<button type="button"
class="btn btn-info btn-sm showComment"
data-comment="<?php echo e($comment->comment); ?>">
<span class="fa fa-eye"></span> <?php echo e(__('Comment')); ?>
</button>
<a href="<?php echo e(optional($comment->commentable)->url); ?>"
class="btn btn-secondary btn-sm"
target="_blank">
<span class="fa fa-eye"></span> <?php echo e($comment->getCommentType()['show-name']); ?>
</a>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
<?php echo e($comments->links()); ?>
</div>
</div>
</div>
</div>
<div class="modal fade" id="commentModal" style="z-index: 999999999" tabindex="-1" role="dialog" aria-labelledby="commentModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="commentModalLabel"><?php echo e(__('Comment')); ?></h5>
</div>
<div class="modal-body text-justify"></div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">بستن</button>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/masomi/armshop/resources/views/account/comments/index.blade.php ENDPATH**/ ?>