Viewing: 4e784e8573cf4672cf6e95c69104f13eed007873.php
<?php $__env->startSection('title', translate('My_Support_Tickets').' | '.$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-4"> <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 h-100"> <div class="card-body d-flex flex-column gap-3 p-2 p-sm-4"> <div class="d-flex left gap-2 justify-content-between"> <div class="media gap-3"></div> <button class="btn btn-primary rounded-pill px-2 py-0 px-sm-4 py-sm-2" data-bs-toggle="modal" data-bs-target="#reviewModal"><?php echo e(translate('create_support_tickets')); ?></button> </div> <?php $__currentLoopData = $supportTickets; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$supportTicket): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="bg-light rounded-10"> <div class="border-bottom support-ticket-row border-grey p-3"> <div class="media gap-2 gap-sm-3"> <div class="avatar"> <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 dark-support" alt=""> </div> <div class="media-body"> <div class="d-flex flex-column gap-1"> <div class="media align-items-start justify-content-between"> <div class="media-body"> <a href="<?php echo e(route('support-ticket.index',$supportTicket['id'])); ?>"> <h6 class=""><?php echo e(\App\CPU\customer_info()->f_name); ?> <?php echo e(\App\CPU\customer_info()->l_name); ?></h6> </a> <div class="fs-12 text-muted mb-1"><?php echo e(\App\CPU\customer_info()->email); ?></div> </div> <?php if($supportTicket->status != 'close'): ?> <a href="<?php echo e(route('support-ticket.close',[$supportTicket['id']])); ?>" class="btn btn-outline-danger fw-semibold text-nowrap"><?php echo e(translate('Close_ticket')); ?></a> <?php endif; ?> </div> <div class="d-flex flex-wrap align-items-center gap-2 gap-sm-3"> <span <?php if($supportTicket->priority == 'Urgent'): ?> class="badge rounded-pill bg-danger" <?php elseif($supportTicket->priority == 'High'): ?> class="badge rounded-pill bg-warning" <?php elseif($supportTicket->priority == 'Medium'): ?> class="badge rounded-pill bg-info" <?php else: ?> class="badge rounded-pill bg-success" <?php endif; ?> > <?php echo e($supportTicket->priority); ?></span> <span class="<?php echo e($supportTicket->status == 'open' ? 'badge bg-info' : 'badge bg-danger'); ?> rounded-pill"><?php echo e($supportTicket->status); ?></span> <span class="badge bg-white text-dark"><?php echo e($supportTicket->type); ?></span> </div> </div> </div> </div> <!-- <?php if($supportTicket->status != 'close'): ?> <a href="<?php echo e(route('support-ticket.close',[$supportTicket['id']])); ?>" class="btn btn-outline-danger fw-semibold"><?php echo e(translate('Close_ticket')); ?></a> <?php endif; ?> --> </div> <div class="d-flex flex-wrap justify-content-between gap-2 p-3"> <h6 class="text-truncate " style="--width: 60ch"><?php echo e($supportTicket->subject); ?></h6> <div class="fs-12"><?php echo e(date('d M, Y H:i A',strtotime($supportTicket->created_at))); ?></div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php if($supportTickets->count()==0): ?> <h5 class="text-center"><?php echo e(translate('not_found_anything')); ?></h5> <?php endif; ?> <div class="border-0"> <?php echo e($supportTickets->links()); ?> </div> </div> </div> </div> </div> </div> </main> <!-- End Main Content --> <!-- Review Modal --> <div class="modal fade" id="reviewModal" tabindex="-1" aria-labelledby="reviewModalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header px-sm-5"> <h1 class="modal-title fs-5" id="reviewModalLabel"><?php echo e(translate('submit_new_ticket')); ?></h1> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="p-3 px-sm-5"> <span><?php echo e(translate('you_will_get_response')); ?>.</span> </div> <div class="modal-body px-sm-5"> <form action="<?php echo e(route('ticket-submit')); ?>" id="open-ticket" method="post"> <?php echo csrf_field(); ?> <div class="form-group mb-4"> <label for="rating"><?php echo e(translate('Subject')); ?></label> <input type="text" class="form-control" id="ticket-subject" name="ticket_subject" required> </div> <div class="row"> <div class="form-group col-md-6 mb-4"> <label for="rating"><?php echo e(translate('Type')); ?></label> <select id="ticket-type" name="ticket_type" class="form-select" required> <option value="Website problem"><?php echo e(translate('Website')); ?> <?php echo e(translate('problem')); ?></option> <option value="Partner request"><?php echo e(translate('partner_request')); ?></option> <option value="Complaint"><?php echo e(translate('Complaint')); ?></option> <option value="Info inquiry"><?php echo e(translate('Info')); ?> <?php echo e(translate('inquiry')); ?> </option> </select> </div> <div class="form-group col-md-6 mb-4"> <label for="rating"><?php echo e(translate('Priority')); ?></label> <select id="ticket-priority" name="ticket_priority" class="form-select" required> <option value><?php echo e(translate('choose_priority')); ?></option> <option value="Urgent"><?php echo e(translate('Urgent')); ?></option> <option value="High"><?php echo e(translate('High')); ?></option> <option value="Medium"><?php echo e(translate('Medium')); ?></option> <option value="Low"><?php echo e(translate('Low')); ?></option> </select> </div> </div> <div class="form-group mb-4"> <label for="comment"><?php echo e(translate('describe_your_issue')); ?></label> <textarea class="form-control" rows="6" id="ticket-description" name="ticket_description" placeholder="<?php echo e(translate('Leave_your_issue')); ?>"></textarea> </div> <div class="modal-footer gap-3 pb-4 px-sm-5"> <button type="button" class="btn btn-secondary m-0" data-bs-dismiss="modal"><?php echo e(translate('Back')); ?></button> <button type="submit" class="btn btn-primary m-0"><?php echo e(translate('Submit')); ?></button> </div> </form> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?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/account-tickets.blade.php ENDPATH**/ ?>
Return