7bc798535092f0c004d137632f8a299e45bf8afe.php 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php $__env->startSection('panel_content'); ?>
  2. <div class="card">
  3. <form class="" id="sort_customers" action="" method="GET">
  4. <div class="card-header row gutters-5">
  5. <div class="col">
  6. <h5 class="mb-0 h6"><?php echo e(translate('Notifications')); ?></h5>
  7. </div>
  8. </div>
  9. <div class="card-body">
  10. <ul class="list-group list-group-flush">
  11. <?php $__empty_1 = true; $__currentLoopData = $notifications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $notification): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
  12. <?php if($notification->type == 'App\Notifications\OrderNotification'): ?>
  13. <li class="list-group-item d-flex justify-content-between align-items- py-3">
  14. <div class="media text-inherit">
  15. <div class="media-body">
  16. <p class="mb-1 text-truncate-2">
  17. <?php echo e(translate('Order: ')); ?>
  18. <a href="<?php echo e(route('seller.orders.show', encrypt($notification->data['order_id']))); ?>">
  19. <?php echo e($notification->data['order_code']); ?>
  20. </a>
  21. <?php echo e(translate(' has been '. ucfirst(str_replace('_', ' ', $notification->data['status'])))); ?>
  22. </p>
  23. <small class="text-muted">
  24. <?php echo e(date("F j Y, g:i a", strtotime($notification->created_at))); ?>
  25. </small>
  26. </div>
  27. </div>
  28. </li>
  29. <?php endif; ?>
  30. <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
  31. <li class="list-group-item">
  32. <div class="py-4 text-center fs-16"><?php echo e(translate('No notification found')); ?></div>
  33. </li>
  34. <?php endif; ?>
  35. </ul>
  36. <?php echo e($notifications->links()); ?>
  37. </div>
  38. </form>
  39. </div>
  40. <?php $__env->stopSection(); ?>
  41. <?php $__env->startSection('modal'); ?>
  42. <div class="modal fade" id="order_details" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  43. <div class="modal-dialog modal-dialog-centered modal-xl" role="document">
  44. <div class="modal-content">
  45. <div id="order-details-modal-body">
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. <?php $__env->stopSection(); ?>
  51. <?php $__env->startSection('script'); ?>
  52. <script type="text/javascript">
  53. function show_order_details(order_id)
  54. {
  55. $('#order-details-modal-body').html(null);
  56. if(!$('#modal-size').hasClass('modal-lg')){
  57. $('#modal-size').addClass('modal-lg');
  58. }
  59. $.post('<?php echo e(route('orders.details')); ?>', { _token : AIZ.data.csrf, order_id : order_id}, function(data){
  60. $('#order-details-modal-body').html(data);
  61. $('#order_details').modal();
  62. $('.c-preloader').hide();
  63. });
  64. }
  65. function sort_orders(el){
  66. $('#sort_orders').submit();
  67. }
  68. </script>
  69. <?php $__env->stopSection(); ?>
  70. <?php echo $__env->make('seller.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/www.easybuyjp.shop/resources/views/seller/notification/index.blade.php ENDPATH**/ ?>