@php $viewRoute = 'student.profile'; $editRoute = 'student.edit'; if (isInstructor()) { $viewRoute = 'instructor.student.profile'; } elseif (isOrganization()) { $viewRoute = 'organization.student.profile'; } $isAdmin = isAdmin(); @endphp
{{ translate('Profile') }} | {{ translate('Email') }} | {{ translate('Phone') }} | {{ translate('Enrolled Course') }} | @if ($isAdmin){{ translate('Email Verify') }} | {{ translate('Status') }} | @endif{{ translate('Action') }} |
---|---|---|---|---|---|---|
{{ $translations['first_name'] ?? $userInfo->first_name }} {{ $translations['last_name'] ?? $userInfo->last_name }} |
{{ $student?->email }} | {{ $userInfo?->phone }} | {{ $student?->enrollments?->count() }} | @if ($isAdmin)@php if ($userInfo?->id) { $action = route('student.status', $userInfo?->id); } @endphp | @endif