@php if (!$testimonial || !is_object($testimonial)) { return; } $profileImagePath = 'storage/lms/testimonials/' . $testimonial->profile_image; $defaultImage = 'lms/frontend/assets/images/placeholder/profile.jpg'; $imageSrc = $testimonial->profile_image && fileExists('lms/testimonials', $testimonial->profile_image) ? asset($profileImagePath) : asset($defaultImage); $translations = parse_translation($testimonial); @endphp