관리-도구
편집 파일: f5704ebff78bbbbb7e492ea6f9c3c9aa.php
<?php if (isset($component)) { $__componentOriginald7f77a02f879fd4954ea3c39c4e952cb = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb = $attributes; } ?> <?php $component = Modules\LMS\View\Components\Dashboard\Layout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('dashboard-layout'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Modules\LMS\View\Components\Dashboard\Layout::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php $__env->slot('title', null, []); ?> <?php echo e(translate('Student Assignment')); ?> <?php $__env->endSlot(); ?> <!-- BREADCRUMB --> <?php if (isset($component)) { $__componentOriginalcf27f2c2c873893339708d5fdeeb6984 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalcf27f2c2c873893339708d5fdeeb6984 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => '7ee9c4f86007ba41bc79bbfab1cd8a68::admin.breadcrumb','data' => ['title' => ''.e($assignment->title ?? null).'','pageTo' => 'Assignment']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('portal::admin.breadcrumb'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes(['title' => ''.e($assignment->title ?? null).'','page-to' => 'Assignment']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalcf27f2c2c873893339708d5fdeeb6984)): ?> <?php $attributes = $__attributesOriginalcf27f2c2c873893339708d5fdeeb6984; ?> <?php unset($__attributesOriginalcf27f2c2c873893339708d5fdeeb6984); ?> <?php endif; ?> <?php if (isset($__componentOriginalcf27f2c2c873893339708d5fdeeb6984)): ?> <?php $component = $__componentOriginalcf27f2c2c873893339708d5fdeeb6984; ?> <?php unset($__componentOriginalcf27f2c2c873893339708d5fdeeb6984); ?> <?php endif; ?> <?php if(!empty($studentAssignments) && $studentAssignments->count() > 0): ?> <div class="card overflow-hidden"> <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(translate('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(translate('Last Submission')); ?> </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('Attempts')); ?> </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('Pass Mark')); ?> </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('Total Mark')); ?> </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('Get Mark')); ?> </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('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 = $studentAssignments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $studentAssignment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $user = $studentAssignment?->user->userable ?? null; $userTranslations = parse_translation($user); ?> <tr> <td class="px-4 py-4"> <div class="flex items-center gap-3.5"> <?php if(isset($user) && fileExists('lms/students', $user->profile_img) == true && $user->profile_img != ''): ?> <div class="size-12 rounded-50 overflow-hidden dk-theme-card-square"> <img src="<?php echo e(asset('storage/lms/students/' . $user->profile_img)); ?>" alt="student" class="size-full object-cover"> </div> <?php else: ?> <div class="size-12 rounded-50 overflow-hidden dk-theme-card-square"> <img src="<?php echo e(asset('lms/assets/images/placeholder/profile.jpg')); ?>" alt="student" class="size-full object-cover"> </div> <?php endif; ?> <div> <h6 class="leading-none text-heading dark:text-white font-semibold capitalize"> <a href="#"> <?php echo e($userTranslations['first_name'] ?? ($user->first_name ?? '')); ?> <?php echo e($userTranslations['last_name'] ?? ($user->last_name ?? ($userTranslations['name'] ?? ($user->name ?? '')))); ?> </a> </h6> </div> </div> </td> <td class="px-3.5 py-4"> <?php echo e(customDateFormate($studentAssignment->updated_at)); ?> </td> <td class="px-3.5 py-4"> <?php echo e($studentAssignment?->attempt_number); ?> / <?php echo e($assignment->retake_number); ?> </td> <td class="px-3.5 py-4"> <?php echo e($assignment->pass_mark); ?> </td> <td class="px-3.5 py-4"> <?php echo e($assignment->total_mark); ?> </td> <td class="px-3.5 py-4"> <?php echo e($studentAssignment->score); ?> </td> <td class="px-3.5 py-4"> <?php if($studentAssignment->score >= $assignment->pass_mark): ?> <span class="badge b-solid badge-primary-solid"><?php echo e(translate('Pass')); ?></span> <?php else: ?> <?php if($studentAssignment->score == null): ?> <span class="badge b-solid badge-warning-solid"> <?php echo e(translate('Pending')); ?> </span> <?php else: ?> <span class="badge b-solid badge-danger-solid"> <?php echo e(translate('Failed')); ?> </span> <?php endif; ?> <?php endif; ?> </td> <td class="px-3.5 py-4"> <div class="flex items-center justify-end gap-1"> <a href="<?php echo e(route('exam.start', ['type' => $studentAssignment->exam_type, 'exam_type_id' => $studentAssignment->assignment_id, 'course_id' => $studentAssignment->course_id, 'student' => $studentAssignment->user_id])); ?>" class="btn b-solid btn-info-solid btn-sm dk-theme-card-square" title="<?php echo e(translate('View Result')); ?>"> <?php echo e(translate('View Result')); ?> </a> <a href="<?php echo e(route('course.detail', $studentAssignment?->course?->slug)); ?>" class="btn b-solid btn-info-solid btn-sm dk-theme-card-square" title="<?php echo e(translate('Go Course')); ?>"> <?php echo e(translate('Go Course')); ?> </a> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <?php echo e($studentAssignments->links('portal::admin.pagination.paginate')); ?> </div> <?php else: ?> <?php if (isset($component)) { $__componentOriginal5d13c2904e1f07d85da185576dbff28d = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal5d13c2904e1f07d85da185576dbff28d = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => '7ee9c4f86007ba41bc79bbfab1cd8a68::admin.empty-card','data' => ['title' => 'Yet, No student join this assignment']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('portal::admin.empty-card'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes(['title' => 'Yet, No student join this assignment']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal5d13c2904e1f07d85da185576dbff28d)): ?> <?php $attributes = $__attributesOriginal5d13c2904e1f07d85da185576dbff28d; ?> <?php unset($__attributesOriginal5d13c2904e1f07d85da185576dbff28d); ?> <?php endif; ?> <?php if (isset($__componentOriginal5d13c2904e1f07d85da185576dbff28d)): ?> <?php $component = $__componentOriginal5d13c2904e1f07d85da185576dbff28d; ?> <?php unset($__componentOriginal5d13c2904e1f07d85da185576dbff28d); ?> <?php endif; ?> <?php endif; ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb)): ?> <?php $attributes = $__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb; ?> <?php unset($__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb); ?> <?php endif; ?> <?php if (isset($__componentOriginald7f77a02f879fd4954ea3c39c4e952cb)): ?> <?php $component = $__componentOriginald7f77a02f879fd4954ea3c39c4e952cb; ?> <?php unset($__componentOriginald7f77a02f879fd4954ea3c39c4e952cb); ?> <?php endif; ?> <?php /**PATH D:\www\edulab\Modules\LMS\resources\views\portals\instructor\assignment\student-assignment.blade.php ENDPATH**/ ?>