@if($students->isEmpty())
No students linked to your account.
@else
@foreach($students as $student)
@if($student->student_photo)

@else
{{ strtoupper(substr($student->first_name ?? 'S', 0, 1)) }}
@endif
{{ trim(($student->first_name ?? '') . ' ' . ($student->last_name ?? '')) ?: 'Unknown' }}
@if($student->student_code)
{{ $student->student_code }}
@endif
@if($student->pricingPlanType)
{{ $student->pricingPlanType->name ?? '' }}
@endif
{{ $student->courseStudents_count ?? $student->courseStudents->count() }} Course(s)
View Details
@endforeach
@endif