@if (!empty($course->instructors)) @foreach ($course->instructors as $instructor) @php $user = $instructor->userable ?? null; $profile_img = $user?->profile_img ?? ''; $imgSrc = $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); $designationTranslations = parse_translation($user?->designation); @endphp @if ($loop->first)

{{ translate('Course Instructor') }}

Instructor profile image
{{ $userTranslations['first_name'] ?? $user?->first_name }} {{ $userTranslations['last_name'] ?? $user?->last_name }}
{{ $designationTranslations['title'] ?? ($user?->designation?->title ?? '') }}
{{ $instructor->email }} @if ($user->about)
{!! clean($userTranslations['about'] ?? ($user->about ?? '')) !!}
@endif @if (isset($instructor['socials']) && $instructor['socials']->count() > 0)
{{ translate('Follow') }} -
@endif
@endif @endforeach @endif