@foreach ($comments as $blogComment) @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'); @endphp
  • @if (!isset($replay)) @auth
    @endauth @endif
    User profile image
    {{ $user->guard == 'organization' ? $user?->name : $user->first_name . ' ' . $user->last_name }}
    {{ customDateFormate($blogComment->created_at, format: 'M d Y') }}

    {{ $blogComment->comment ?? '' }}

    @if (!empty($blogComment->replies) && $blogComment->replies->count() > 0) @endif
  • @endforeach