  <div class="customer-layout-body p-0">
      <div class="table-scroller">
          <table class="table">
              <tbody>
                  <?php $__empty_1 = true; $__currentLoopData = $supportTickets; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ticket): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                      <tr>
                          <td class="ticket-col">
                              <div class="ticket-board">
                                  <span class="ticket-board-icon">
                                      <i class="fa-regular fa-envelope"></i>
                                  </span>
                                  <div class="ticket-board-content">
                                      <a href="<?php echo e(route('admin.ticket.details', $ticket->ticket_number)); ?>" class="ticket-board-title">
                                          <?php echo e(__($ticket->subject)); ?>

                                      </a>
                                      <div class="ticket-board-list">
                                          <p class="ticket-board-type">
                                              <?php echo e(__($ticket->department?->name)); ?>

                                          </p>
                                          <a href="<?php echo e(route('admin.ticket.details', $ticket->ticket_number)); ?>" class="ticket-board-id fw-bold">
                                              #<?php echo e($ticket->ticket_number); ?>

                                          </a>

                                          <?php if(count($ticket->tags)): ?>
                                              <div class='ticket-board-tags'>
                                                  <?php $__currentLoopData = $ticket->tags; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tag): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                      <span class='tag-style'><?php echo e(__($tag->name)); ?></span>
                                                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                              </div>
                                          <?php endif; ?>
                                      </div>
                                  </div>
                              </div>
                          </td>
                          <td>
                              <div class="ticket-board">
                                  <?php
                                      if (request()->routeIs('admin.agent.happiness.rating')) {
                                          $imagePath = getImage(getFilePath('userProfile') . '/' . $ticket->user?->image, getFileSize('userProfile'), true);
                                          $name = $ticket->user->fullname;
                                          $route = route('admin.customer.overview', $ticket->user_id);
                                      } else {
                                          $imagePath = getImage(getFilePath('adminProfile') . '/' . $ticket->admin?->image, getFileSize('adminProfile'), true);
                                          $name = $ticket->admin?->name;
                                          $route = route('admin.customer.overview', $ticket->assign_staff_id);
                                      }
                                  ?>
                                  <span class="ticket-board-thumb">
                                      <div class="mini-profile">
                                          <div class="mini-profile-img">
                                              <img src="<?php echo e($imagePath); ?>" alt="ticket-board" />
                                          </div>
                                      </div>
                                  </span>
                                  <div class="ticket-board-content">
                                      <a href="<?php echo e($route); ?>" class="ticket-board-title">
                                          <?php echo e($name); ?>

                                      </a>
                                      <div class="ticket-board-list">
                                          <p class="ticket-board-type text--warning">
                                              <?php echo e(showDateTime($ticket->rated_at, 'd M Y')); ?>

                                          </p>
                                          <span>.</span>
                                          <p class="ticket-board-id">
                                              <?php echo e(showDateTime($ticket->rated_at, 'h:i A')); ?>

                                          </p>
                                      </div>
                                  </div>
                              </div>
                          </td>

                          <td>
                            <div class="feedback" data-rating="<?php echo e(__(ucFirst($ticket->customer_happiness))); ?>" data-feedback="<?php echo e(__($ticket->feedback)); ?>" data-agent_rating="<?php echo e(__(ucFirst($ticket->admin_happiness))); ?>" data-admin_feedback="<?php echo e(__($ticket->admin_feedback)); ?>">
                                <p class="fs-14 text--dark"><?php echo e(__(ucFirst($ticket->customer_happiness))); ?>

                                    <span class="icon">
                                        <?php echo $__env->make("admin.partials.svg.$ticket->customer_happiness", array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                                    </span>
                                </p>
                                <p class="fs-12 line-clamp-1 happiness-text"><?php echo e(__($ticket->feedback)); ?></p>
                            </div>
                          </td>
                      </tr>
                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                      <tr>
                          <td colspan="100%">
                              <?php if (isset($component)) { $__componentOriginal785b8965d65806a202a14875024d2012 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal785b8965d65806a202a14875024d2012 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.empty-message','data' => ['message' => 'No feedback found']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('empty-message'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['message' => 'No feedback found']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal785b8965d65806a202a14875024d2012)): ?>
<?php $attributes = $__attributesOriginal785b8965d65806a202a14875024d2012; ?>
<?php unset($__attributesOriginal785b8965d65806a202a14875024d2012); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal785b8965d65806a202a14875024d2012)): ?>
<?php $component = $__componentOriginal785b8965d65806a202a14875024d2012; ?>
<?php unset($__componentOriginal785b8965d65806a202a14875024d2012); ?>
<?php endif; ?>
                          </td>
                      </tr>
                  <?php endif; ?>
              </tbody>
          </table>
      </div>
  </div>


  <div id="happinessModal" class="modal custom--modal fade" tabindex="-1" role="dialog">
      <div class="modal-dialog" role="document">
          <div class="modal-content">
              <div class="modal-header">
                  <h5 class="modal-title"><?php echo app('translator')->get('Happiness Rating'); ?></h5>
                  <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
                      <i class="las la-times"></i>
                  </button>
              </div>

              <div class="modal-body">
                  <h6><?php echo app('translator')->get('Customer'); ?>: <strong class="customerRating"></strong></h6>
                  <hr class="my-1">
                  <p class="customerFeedback"></p>

                  <h6 class="mt-3"><?php echo app('translator')->get('Agent'); ?>: <strong class="agentRating"></strong></h6>
                  <hr class="my-1">
                  <p class="agentFeedback"></p>
              </div>
              <div class="modal-footer">
                  <button type="button" class="btn btn--dark btn--sm" data-bs-dismiss="modal"><?php echo app('translator')->get('Close'); ?></button>
              </div>
          </div>
      </div>
  </div>

  <?php $__env->startPush('style'); ?>
      <style>
          .feedback {
              cursor: pointer;
          }
      </style>
  <?php $__env->stopPush(); ?>


  <?php $__env->startPush('script'); ?>
      <script>
          (function($) {
              "use strict";
              let modal = $('#happinessModal');
              
              $('.feedback').on('click', function() {
                  modal.find('.customerRating').text($(this).data('rating'));
                  modal.find('.customerFeedback').text($(this).data('feedback'));
                  modal.find('.agentRating').text($(this).data('agent_rating'));
                  modal.find('.agentFeedback').text($(this).data('admin_feedback'));
                  modal.modal('show');
              });

          })(jQuery);
      </script>
  <?php $__env->stopPush(); ?>
<?php /**PATH C:\laragon\www\projects\custom_viserdesk\Files\core\resources\views/admin/common/happiness.blade.php ENDPATH**/ ?>