관리-도구
편집 파일: edb7cfba17c0e065b9e3bcc544590f8a.php
<?php $__currentLoopData = $comments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $blogComment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $user = $blogComment->user->userable ?? null; $profileImg = $user->profile_img && fileExists('lms/' . userImagePath($blogComment->user->guard) . '/', $user->profile_img) == true ? asset('storage/lms/' . userImagePath($blogComment->user->guard) . '/' . $user->profile_img) : asset('lms/frontend/assets/images/placeholder/profile.jpg'); ?> <li class="relative border border-border rounded-2xl p-6"> <?php if(!isset($replay)): ?> <?php if(auth()->guard()->check()): ?> <div class="absolute top-6 right-6 rtl:right-auto rtl:left-6 z-10"> <button type="button" class="btn b-outline btn-secondary-outline btn-sm rounded-full reply-btn" aria-label="Reply comment" data-id="<?php echo e($blogComment->id); ?>"> <?php echo e(translate('Reply')); ?> </button> </div> <?php endif; ?> <?php endif; ?> <div class="flex items-center gap-3.5"> <div class="size-12 overflow-hidden rounded-50 shrink-0"> <img data-src="<?php echo e($profileImg); ?>" alt="User profile image" class="size-full object-cover"> </div> <div> <h6 class="area-title text-base !leading-none font-bold"> <?php echo e($user->guard == 'organization' ? $user?->name : $user->first_name . ' ' . $user->last_name); ?> </h6> <div class="text-heading/60 text-sm leading-none mt-2"> <?php echo e(customDateFormate($blogComment->created_at, format: 'M d Y')); ?> </div> </div> </div> <div class="text-heading/70 font-semibold leading-[1.55] mt-6 grow"> <p> <?php echo e($blogComment->comment ?? ''); ?> </p> </div> <!-- REPLIED COMMENT LIST --> <?php if(!empty($blogComment->replies) && $blogComment->replies->count() > 0): ?> <ul class="flex flex-col gap-5 mt-5"> <?php if (isset($component)) { $__componentOriginal0e530623ff23786276e8c658eea3f140 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal0e530623ff23786276e8c658eea3f140 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f484570d7cf557020e11ace406901b10::comments.user-comment-list','data' => ['comments' => $blogComment->replies,'replay' => 'false']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('theme::comments.user-comment-list'); ?> <?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(['comments' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($blogComment->replies),'replay' => 'false']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal0e530623ff23786276e8c658eea3f140)): ?> <?php $attributes = $__attributesOriginal0e530623ff23786276e8c658eea3f140; ?> <?php unset($__attributesOriginal0e530623ff23786276e8c658eea3f140); ?> <?php endif; ?> <?php if (isset($__componentOriginal0e530623ff23786276e8c658eea3f140)): ?> <?php $component = $__componentOriginal0e530623ff23786276e8c658eea3f140; ?> <?php unset($__componentOriginal0e530623ff23786276e8c658eea3f140); ?> <?php endif; ?> </ul> <?php endif; ?> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php /**PATH D:\www\edulab\Modules\LMS\resources\views\components\comments\user-comment-list.blade.php ENDPATH**/ ?>