관리-도구
편집 파일: 4fe7537b9522fdb57edd14ada5209707.php
<div class="overflow-x-auto scrollbar-table"> <table class="table-auto w-full whitespace-nowrap text-left text-gray-500 dark:text-dark-text font-medium leading-none"> <thead class="text-primary-500"> <tr> <th class="px-3.5 py-4 bg-[#F2F4F9] dark:bg-dark-card-two first:rounded-l-lg last:rounded-r-lg first:dk-theme-card-square-left last:dk-theme-card-square-right"> <?php echo e('Student'); ?></th> <th class="px-3.5 py-4 bg-[#F2F4F9] dark:bg-dark-card-two first:rounded-l-lg last:rounded-r-lg first:dk-theme-card-square-left last:dk-theme-card-square-right"> <?php echo e('Ticket Code'); ?></th> <th class="px-3.5 py-4 bg-[#F2F4F9] dark:bg-dark-card-two first:rounded-l-lg last:rounded-r-lg first:dk-theme-card-square-left last:dk-theme-card-square-right"> <?php echo e(translate('Title')); ?> </th> <th class="px-3.5 py-4 bg-[#F2F4F9] dark:bg-dark-card-two first:rounded-l-lg last:rounded-r-lg first:dk-theme-card-square-left last:dk-theme-card-square-right"> <?php echo e(translate('Ticket Date')); ?> </th> <th class="px-3.5 py-4 bg-[#F2F4F9] dark:bg-dark-card-two first:rounded-l-lg last:rounded-r-lg first:dk-theme-card-square-left last:dk-theme-card-square-right"> <?php echo e(translate('Ticket Status')); ?> </th> <th class="px-3.5 py-4 bg-[#F2F4F9] dark:bg-dark-card-two first:rounded-l-lg last:rounded-r-lg first:dk-theme-card-square-left last:dk-theme-card-square-right w-10"> <?php echo e(translate('Action')); ?> </th> </tr> </thead> <tbody class="divide-y divide-gray-200 dark:divide-dark-border-three"> <?php $__currentLoopData = $tickets; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ticket): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $ticket = $ticket->support; $user = $ticket?->user->userable; $userTranslations = parse_translation($user); $firstName = $userTranslations['first_name'] ?? ($user->first_name ?? ''); $lastName = $userTranslations['last_name'] ?? ($user->last_name ?? ''); $profileImg = $user?->profile_img && fileExists('lms/students', $user?->profile_img) ? asset('storage/lms/students/' . $user->profile_img) : asset('lms/assets/images/placeholder/profile.jpg'); ?> <tr> <td class="px-3.5 py-4"> <a href="#" class="flex items-center gap-2"> <div class="size-10 rounded-50 overflow-hidden dk-theme-card-square"> <img src="<?php echo e($profileImg); ?>" alt="instructor" class="size-full object-cover"> </div> <h6 class="text-heading"> <?php if(isset($user->first_name, $user->last_name)): ?> <?php echo e($firstName . ' ' . $lastName); ?> <?php else: ?> <?php echo e($userTranslations['name'] ?? $user->name); ?> <?php endif; ?> </h6> </a> </td> <td class="px-3.5 py-4"> <h6 class="text-md leading-none">#<?php echo e($ticket->ticket_code); ?></h6> </td> <td class="px-3.5 py-4"> <h6 class="text-md leading-none"><a href="#"><?php echo e($ticket->title); ?></a></h6> </td> <td class="px-3.5 py-4"> <?php echo e(customDateFormate($ticket->updated_at, $format = 'y M d')); ?> </td> <td class="px-3.5 py-4"> <?php switch($ticket->status): case ('pending'): ?> <span class="badge b-solid badge-warning-solid capitalize"> <?php echo e(translate($ticket->status)); ?> </span> <?php break; ?> <?php case ('active'): ?> <span class="badge b-solid badge-success-solid capitalize"> <?php echo e(translate($ticket->status)); ?> </span> <?php break; ?> <?php case ('close'): ?> <span class="badge b-solid badge-danger-solid capitalize"> <?php echo e(translate($ticket->status)); ?> </span> <?php break; ?> <?php endswitch; ?> </td> <td class="px-3.5 py-4"> <div class="flex items-center gap-1"> <a href="<?php echo e(route($action, ['id' => $ticket->id, 'type' => 'student'])); ?>" class="btn-icon btn-primary-icon-light size-8"> <i class="ri-<?php echo e($icon == 'reply' ? 'reply' : 'eye'); ?>-line text-inherit text-[13px]"></i> </a> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <?php /**PATH D:\www\edulab\Modules\LMS\resources\views\portals\components\supports\student-support.blade.php ENDPATH**/ ?>