{{ translate('Name') }}:
{{ $studentTranslations['first_name'] ?? $userInfo?->first_name }}
{{ $studentTranslations['last_name'] ?? $userInfo?->last_name }}
{{ translate('Email') }}:
{{ $enrollment?->user?->email }}
{{ translate('Phone') }}:
{{ $userInfo?->phone }}
|
@if (isset($instructors) && !empty($instructors))
@foreach ($instructors as $instructor)
@php
$instructorInfo = $instructor?->userable ?? null;
$instructorTranslations = parse_translation($instructorInfo);
@endphp
{{ $instructorTranslations['first_name'] ?? $instructorInfo->first_name }}
{{ $instructorTranslations['last_name'] ?? $instructorInfo->last_name }}
@if (!$loop->last)
,
@endif
@endforeach
@elseif($bundleInstructor)
@php
$bundleUser = $bundleInstructor->userable ?? null;
$bundleUserTranslations = parse_translation($bundleUser);
@endphp
{{ $bundleUserTranslations['first_name'] ?? $user->first_name }}
{{ $bundleUserTranslations['last_name'] ?? $user->last_name }}
@elseif($bundleOrganization)
@php
$orgUser = $bundleOrganization->userable ?? null;
$orgUserTranslations = parse_translation($orgUser);
@endphp
{{ $orgUserTranslations['name'] ?? $user->name }}
@endif
|
@if ($enrollment->purchase_type == 'course')
@php
$courseTranslations = parse_translation($enrollment->course);
@endphp
{{ str_limit($courseTranslations['title'] ?? $enrollment->course?->title, 20, '...') }}
@elseif ($enrollment->purchase_type == 'bundle')
@php
$bundleTranslations = parse_translation($enrollment->courseBundle);
@endphp
{{ str_limit($bundleTranslations['title'] ?? $enrollment->courseBundle?->title, 20, '...') }}
@endif
|
{{ customDateFormate($enrollment->created_at, $format = 'd M Y h:i a') }}
|
{{ $enrollment?->purchase->payment_method }}
|
@switch($enrollment?->purchase->status)
@case('success')
{{ translate('success') }}
@break
@case('fail')
{{ translate('fail') }}
@break
@endswitch
|
|
@endforeach