c00a72a3125d1e2bfae99b147f4b800cb363786a.php 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?php $__env->startSection('panel_content'); ?>
  2. <div class="aiz-titlebar mt-2 mb-4">
  3. <div class="row align-items-center">
  4. <div class="col-md-6">
  5. <h1 class="h3"><?php echo e(translate('Support Ticket')); ?></h1>
  6. </div>
  7. </div>
  8. </div>
  9. <div class="row">
  10. <div class="col-md-4 mx-auto mb-3" >
  11. <div class="p-3 rounded mb-3 c-pointer text-center bg-white shadow-sm hov-shadow-lg has-transition" data-toggle="modal" data-target="#ticket_modal">
  12. <span class="size-70px rounded-circle mx-auto bg-secondary d-flex align-items-center justify-content-center mb-3">
  13. <i class="las la-plus la-3x text-white"></i>
  14. </span>
  15. <div class="fs-20 text-primary"><?php echo e(translate('Create a Ticket')); ?></div>
  16. </div>
  17. </div>
  18. </div>
  19. <div class="card">
  20. <div class="card-header">
  21. <h5 class="mb-0 h6"><?php echo e(translate('Tickets')); ?></h5>
  22. </div>
  23. <div class="card-body">
  24. <table class="table aiz-table mb-0">
  25. <thead>
  26. <tr>
  27. <th data-breakpoints="lg"><?php echo e(translate('Ticket ID')); ?></th>
  28. <th data-breakpoints="lg"><?php echo e(translate('Sending Date')); ?></th>
  29. <th><?php echo e(translate('Subject')); ?></th>
  30. <th><?php echo e(translate('Status')); ?></th>
  31. <th data-breakpoints="lg"><?php echo e(translate('Options')); ?></th>
  32. </tr>
  33. </thead>
  34. <tbody>
  35. <?php $__currentLoopData = $tickets; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $ticket): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
  36. <tr>
  37. <td>#<?php echo e($ticket->code); ?></td>
  38. <td><?php echo e($ticket->created_at); ?></td>
  39. <td><?php echo e($ticket->subject); ?></td>
  40. <td>
  41. <?php if($ticket->status == 'pending'): ?>
  42. <span class="badge badge-inline badge-danger"><?php echo e(translate('Pending')); ?></span>
  43. <?php elseif($ticket->status == 'open'): ?>
  44. <span class="badge badge-inline badge-secondary"><?php echo e(translate('Open')); ?></span>
  45. <?php else: ?>
  46. <span class="badge badge-inline badge-success"><?php echo e(translate('Solved')); ?></span>
  47. <?php endif; ?>
  48. </td>
  49. <td>
  50. <a href="<?php echo e(route('support_ticket.show', encrypt($ticket->id))); ?>" class="btn btn-styled btn-link py-1 px-0 icon-anim text-underline--none">
  51. <?php echo e(translate('View Details')); ?>
  52. <i class="la la-angle-right text-sm"></i>
  53. </a>
  54. </td>
  55. </tr>
  56. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  57. </tbody>
  58. </table>
  59. <div class="aiz-pagination">
  60. <?php echo e($tickets->links()); ?>
  61. </div>
  62. </div>
  63. </div>
  64. <?php $__env->stopSection(); ?>
  65. <?php $__env->startSection('modal'); ?>
  66. <div class="modal fade" id="ticket_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  67. <div class="modal-dialog modal-dialog-centered" role="document">
  68. <div class="modal-content">
  69. <div class="modal-header">
  70. <h5 class="modal-title strong-600 heading-5"><?php echo e(translate('Create a Ticket')); ?></h5>
  71. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  72. <span aria-hidden="true">&times;</span>
  73. </button>
  74. </div>
  75. <div class="modal-body px-3 pt-3">
  76. <form class="" action="<?php echo e(route('support_ticket.store')); ?>" method="post" enctype="multipart/form-data">
  77. <?php echo csrf_field(); ?>
  78. <div class="row">
  79. <div class="col-md-2">
  80. <label><?php echo e(translate('Subject')); ?></label>
  81. </div>
  82. <div class="col-md-10">
  83. <input type="text" class="form-control mb-3" placeholder="<?php echo e(translate('Subject')); ?>" name="subject" required>
  84. </div>
  85. </div>
  86. <div class="row">
  87. <div class="col-md-2">
  88. <label><?php echo e(translate('Provide a detailed description')); ?></label>
  89. </div>
  90. <div class="col-md-10">
  91. <textarea type="text" class="form-control mb-3" rows="3" name="details" placeholder="<?php echo e(translate('Type your reply')); ?>" data-buttons="bold,underline,italic,|,ul,ol,|,paragraph,|,undo,redo" required></textarea>
  92. </div>
  93. </div>
  94. <div class="form-group row">
  95. <label class="col-md-2 col-form-label"><?php echo e(translate('Photo')); ?></label>
  96. <div class="col-md-10">
  97. <div class="input-group" data-toggle="aizuploader" data-type="image" data-multiple="true">
  98. <div class="input-group-prepend">
  99. <div class="input-group-text bg-soft-secondary font-weight-medium"><?php echo e(translate('Browse')); ?></div>
  100. </div>
  101. <div class="form-control file-amount"><?php echo e(translate('Choose File')); ?></div>
  102. <input type="hidden" name="attachments" class="selected-files">
  103. </div>
  104. <div class="file-preview box sm">
  105. </div>
  106. </div>
  107. </div>
  108. <div class="text-right mt-4">
  109. <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo e(translate('cancel')); ?></button>
  110. <button type="submit" class="btn btn-primary"><?php echo e(translate('Send Ticket')); ?></button>
  111. </div>
  112. </form>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. <?php $__env->stopSection(); ?>
  118. <?php echo $__env->make('frontend.layouts.user_panel', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/www.easybuyjp.shop/resources/views/frontend/user/support_ticket/index.blade.php ENDPATH**/ ?>