관리-도구
편집 파일: 8bd7484cc5b298c43a41b58063912037.php
<?php if (!$instructor) { return; } $user = $instructor?->userable ?? null; $profile_img = $user?->profile_img ?? null; $thumbnail = $profile_img && fileExists('lms/instructors', $profile_img) == true ? asset('storage/lms/instructors/' . $profile_img) : asset('lms/frontend/assets/images/370x396.svg'); $userTranslations = parse_translation($user); if ($userTranslations) { $name = $userTranslations['first_name'] . ' ' . $userTranslations['last_name']; } if ($user?->designation) { $designationTranslate = parse_translation($user?->designation); } ?> <div class="swiper-slide"> <div class="flex flex-col group/instructor"> <div class="aspect-[1/1.14] overflow-hidden rounded-xl image-mask mask-kid-instructor relative before:absolute before:size-full before:inset-0 before:bg-primary/60 before:invisible before:opacity-0 group-hover/instructor:before:visible group-hover/instructor:before:opacity-100 before:custom-transition before:z-[1]"> <img data-src="<?php echo e($thumbnail); ?>" alt="Instructor Profile image" class="size-full object-cover group-hover/instructor:scale-110 custom-transition"> <!-- SOCIAL --> <?php if($instructor->socials->count() > 0): ?> <?php if (isset($component)) { $__componentOriginal895c5f52f52ad266a2c4117783433c56 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal895c5f52f52ad266a2c4117783433c56 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f484570d7cf557020e11ace406901b10::social.social-list-one','data' => ['socials' => $instructor->socials,'hoverButton' => 'yes','ulClass' => 'flex gap-1.5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 invisible opacity-0 group-hover/instructor:visible group-hover/instructor:opacity-100 duration-300 z-[2]','listClass' => '[&:first-child]:-translate-x-10 [&:last-child]:translate-x-10 group-hover/instructor:translate-x-0 duration-300 delay-300','itemClass' => 'flex-center size-11 rounded-50 border border-white/25 text-white hover:bg-secondary hover:text-heading hover:border-transparent custom-transition']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('theme::social.social-list-one'); ?> <?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(['socials' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($instructor->socials),'hover-button' => 'yes','ul-class' => 'flex gap-1.5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 invisible opacity-0 group-hover/instructor:visible group-hover/instructor:opacity-100 duration-300 z-[2]','list-class' => '[&:first-child]:-translate-x-10 [&:last-child]:translate-x-10 group-hover/instructor:translate-x-0 duration-300 delay-300','item-class' => 'flex-center size-11 rounded-50 border border-white/25 text-white hover:bg-secondary hover:text-heading hover:border-transparent custom-transition']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal895c5f52f52ad266a2c4117783433c56)): ?> <?php $attributes = $__attributesOriginal895c5f52f52ad266a2c4117783433c56; ?> <?php unset($__attributesOriginal895c5f52f52ad266a2c4117783433c56); ?> <?php endif; ?> <?php if (isset($__componentOriginal895c5f52f52ad266a2c4117783433c56)): ?> <?php $component = $__componentOriginal895c5f52f52ad266a2c4117783433c56; ?> <?php unset($__componentOriginal895c5f52f52ad266a2c4117783433c56); ?> <?php endif; ?> <?php endif; ?> </div> <div class="flex flex-col text-center mt-6"> <h6 class="area-title text-xl !leading-none font-bold group-hover/instructor:text-primary custom-transition"> <a href="<?php echo e(route('users.detail', $instructor->id)); ?>" aria-label="Instructor profile link"> <?php echo e($name ?? $user?->first_name . ' ' . $user?->last_name); ?> </a> </h6> <div class="area-description !leading-none mt-2"> <?php echo e($designationTranslate['title'] ?? ($user?->designation?->title ?? '')); ?> </div> </div> </div> </div> <?php /**PATH D:\www\edulab\Modules\LMS\resources\views\components\cards\instructor\card-five.blade.php ENDPATH**/ ?>