관리-도구
편집 파일: 46023de19faabe60e426acfcbab6a56a.php
<?php $user = $organization?->userable ?? null; $profile_img = $user?->profile_img ?? ''; $bgImage = $user->cover_photo && fileExists('lms/organizations', $user->cover_photo) == true ? asset("storage/lms/organizations/{$user->cover_photo}") : asset('lms/frontend/assets/images/870x260.svg'); $imgSrc = $profile_img && fileExists('lms/organizations', $profile_img) == true ? asset("storage/lms/organizations/{$profile_img}") : asset('lms/frontend/assets/images/870x260.svg'); $totalCourse = $organization?->organizationCourses->count(); $totalInstructor = $organization?->organizationInstructors->count(); $coursesId = $totalCourse ? $organization?->organizationCourses->pluck('id')->toArray() : null; $rating = instructorOrgUser_review($coursesId); $userTranslations = parse_translation($user); if ($userTranslations) { $name = $userTranslations['name']; } $city = $user?->city?->name ?? ''; if ($user?->city) { $cityTranslations = parse_translation($user?->city); } if ($user?->country) { $countryTranslations = parse_translation($user?->country); } $cityName = isset($cityTranslations['name']) && $cityTranslations['name'] ? $cityTranslations['name'] . ',' : ($city ? $city . ',' : ''); ?> <!-- ORGANIZATION CARD --> <div class="col-span-full md:col-span-6"> <div class="relative flex flex-col bg-white h-full border border-border rounded-2xl overflow-hidden hover:shadow-md custom-transition"> <div class="w-full h-36 bg-no-repeat bg-cover bg-center shrink-0" style="background-image: url(<?php echo e($bgImage); ?>);"> </div> <div class="flex-center !justify-start flex-col px-6 pb-10 w-full -mt-10 gap-2 grow"> <div class="relative"> <div class="size-20 rounded-50 overflow-hidden border-2 border-white"> <img data-src="<?php echo e($imgSrc); ?>" class="size-full object-cover" alt="Organization profile image" class="size-full object-cover"> </div> <!-- VERIFIED ICON --> <?php if($organization->is_verify): ?> <img data-src="<?php echo e(asset('lms/frontend/assets/images/icons/verified.svg')); ?>" alt="verified-icon" class="size-5 absolute bottom-1 right-1" title="Verified icon"> <?php endif; ?> </div> <div class="flex-center mt-2"> <h5 class="area-title text-2xl !leading-none font-semibold hover:text-primary"> <a href="<?php echo e(route('users.detail', $organization->id)); ?>" aria-label="Organization name"> <?php echo e($name ?? $user->name); ?> <span class="absolute inset-0" aria-hidden="true"></span> </a> </h5> </div> <p class="area-description !leading-none"> <?php echo e($cityName); ?> <?php echo e($countryTranslations['name'] ?? ($user?->country?->name ?? '')); ?></p> <ul class="flex-center divide-x rtl:divide-x-reverse divide-border space-x-5 rtl:space-x-reverse [&>:not(:first-child)]:pl-5 rtl:[&>:not(:first-child)]:pl-0 rtl:[&>:not(:first-child)]:pr-5 leading-none text-heading/70 mt-5"> <li class="flex flex-col gap-2 text-center"> <h6 class="area-title text-lg font-semibold !leading-none"> <?php echo e($rating['average_rating']); ?></h6> <div class="flex items-center gap-0.5 text-secondary"> <?php echo show_rating($rating['average_rating']); ?> </div> </li> <li class="flex flex-col gap-2 text-center"> <h6 class="area-title text-lg font-semibold !leading-none"> <?php echo e($totalCourse ? $totalCourse . '+' : 0); ?></h6> <p class="area-description text-sm font-semibold !leading-none"> <?php echo e(translate('Courses')); ?> </p> </li> <li class="flex flex-col gap-2 text-center"> <h6 class="area-title text-lg font-semibold !leading-none"> <?php echo e($totalInstructor ? $totalInstructor . '+' : 0); ?></h6> <p class="area-description text-sm font-semibold !leading-none"> <?php echo e(translate('Total Instructors')); ?> </p> </li> </ul> </div> </div> </div> <?php /**PATH /home/inprosysltd/public_html/edulab.inprosysltd.com/Modules/LMS/resources/views/components//cards/organization-card-one.blade.php ENDPATH**/ ?>