@extends('layout.layout') @section('content') @include('components.alert')
@if($students->isEmpty())

No students linked to your account.

@else
@foreach($students as $student)
@if($student->student_photo) {{ $student->full_name }} @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
@endsection @push('styles') @endpush