Viewing: 2c82b7b963d282be29528f4f24f0b47d856c7489.php
<?php $__env->startSection('title', translate('Support_Ticket').' | '.$web_config['name']->value.' '.translate(' Ecommerce')); ?> <?php $__env->startSection('content'); ?> <!-- Main Content --> <main class="main-content d-flex flex-column gap-3 py-3 mb-5"> <div class="container"> <div class="row g-3"> <!-- Sidebar--> <?php echo $__env->make('theme-views.partials._profile-aside', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <div class="col-lg-9"> <div class="card ov-hidden border-0"> <div class="bg-light rounded-10 border-grey d-flex gap-3 flex-wrap align-items-start justify-content-between p-3 m-3"> <div class="media flex-wrap gap-3"> <div class="avatar avatar-lg rounded-circle"> <img onerror="this.src='<?php echo e(theme_asset('assets/img/image-place-holder.png')); ?>'" src="<?php echo e(asset('storage/app/public/profile')); ?>/<?php echo e(\App\CPU\customer_info()->image); ?>" loading="lazy" class="img-fit rounded-circle dark-support" alt=""> </div> <div class="media-body"> <div class="d-flex flex-column gap-1"> <div class="d-flex gap-2 align-items-center"> <h6 class=""><?php echo e(\App\CPU\customer_info()->f_name); ?> <?php echo e(\App\CPU\customer_info()->l_name); ?></h6> <span <?php if($ticket->priority == 'Urgent'): ?> class="badge rounded-pill bg-danger" <?php elseif($ticket->priority == 'High'): ?> class="badge rounded-pill bg-warning" <?php elseif($ticket->priority == 'Medium'): ?> class="badge rounded-pill bg-info" <?php else: ?> class="badge rounded-pill bg-success" <?php endif; ?> ><?php echo e($ticket->priority); ?></span> </div> <div class="fs-12 text-muted"><?php echo e(\App\CPU\customer_info()->email); ?></div> <div class="d-flex flex-wrap align-items-center column-gap-4"> <div class="d-flex align-items-center gap-2 gap-md-3"> <div class="fw-bold"><?php echo e(translate('status')); ?>:</div> <span class="<?php echo e($ticket->status == 'open' ? ' text-info ' : 'text-danger'); ?> fw-semibold"><?php echo e($ticket->status); ?></span> </div> <div class="d-flex align-items-center gap-2 gap-md-3"> <div class="fw-bold"><?php echo e(translate('priority')); ?>:</div> <span <?php if($ticket->priority == 'Urgent'): ?> class="text-danger fw-bold" <?php elseif($ticket->priority == 'High'): ?> class="text-warning fw-bold " <?php elseif($ticket->priority == 'Medium'): ?> class="text-info fw-bold" <?php else: ?> class="text-success fw-bold" <?php endif; ?> > <?php echo e($ticket->priority); ?></span> </div> </div> </div> </div> </div> <?php if($ticket->status != 'close'): ?> <a href="<?php echo e(route('support-ticket.close',[$ticket['id']])); ?>" class="btn btn-outline-danger rounded"><?php echo e(translate('Close_this_ticket')); ?></a> <?php endif; ?> </div> <div class="messaging"> <div class="inbox_msg custom-scrollbar p-3 msg_history __h-30rem"> <div class="outgoing_msg"> <p class="message_text"><?php echo e($ticket['description']); ?></p> <span class="time_date d-flex justify-content-end"> <?php echo e(date('h:i:A | M d',strtotime($ticket['created_at']))); ?><i class="bi px-1"></i></span> </div> <?php $__currentLoopData = $ticket->conversations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $conversation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if($conversation['admin_message'] == null ): ?> <div class="outgoing_msg"> <p class="message_text"><?php echo e($conversation['customer_message']); ?></p> <span class="time_date d-flex justify-content-end"> <?php echo e(date('h:i:A | M d',strtotime($conversation['created_at']))); ?><i class="bi px-1"></i></span> </div> <?php endif; ?> <?php if($conversation['customer_message'] == null): ?> <div class="received_msg"> <p class="message_text"><?php echo e($conversation['admin_message']); ?></p> <span class="time_date"> <?php echo e(date('h:i:A | M d',strtotime($conversation['created_at']))); ?> <i class="bi px-1"></i></span> </div> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <div class="type_msg"> <form action="<?php echo e(route('support-ticket.comment',[$ticket['id']])); ?>" method="post"> <?php echo csrf_field(); ?> <div class="input_msg_write border-top py-2 px-2 px-sm-3 d-flex align-items-start justify-content-between gap-2 gap-sm-3 lh-base"> <textarea class="w-100 custom-height" style="--h: 5rem" id="msgInputValueTicket" name="comment" rows="6" placeholder="<?php echo e(translate('start_typing')); ?>..."></textarea> <button class="btn btn-primary px-2 py-1 lh-1 rounded" type="submit"> <i class="bi bi-send-fill fs-16"></i> </button> </div> </form> </div> </div> </div> </div> </div> </div> </main> <!-- End Main Content --> <?php $__env->stopSection(); ?> <?php $__env->startPush('script'); ?> <script> $(document).ready(function () { $(".msg_history").stop().animate({scrollTop: $(".msg_history")[0].scrollHeight}, 1000); $("#myInput").on("keyup", function () { var value = $(this).val().toLowerCase(); $(".chat_list").filter(function () { $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1) }); }); }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('theme-views.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/u728836105/domains/sakashappliances.com/public_html/resources/themes/theme_aster/theme-views/users-profile/ticket-view.blade.php ENDPATH**/ ?>
Return