{{ __('app.portal.communication.accounts.title') }}

{{ __('app.portal.communication.accounts.desc') }}

@if ($notice) {{ $notice }} @endif @can('portal_accounts.create')
@if ($linkType === 'student') @foreach ($students as $student) @endforeach @else @foreach ($guardians as $guardian) @endforeach @endif
@if ($linkType === 'student' && $students->isEmpty()) {{ __('app.portal.communication.accounts.no_students') }} @elseif ($linkType === 'guardian' && $guardians->isEmpty()) {{ __('app.portal.communication.accounts.no_guardians') }} @endif
{{ __('app.portal.communication.accounts.link_action') }}
@endcan
@if ($accounts->isEmpty()) @else
@foreach ($accounts as $account) @endforeach
{{ __('app.portal.communication.accounts.user') }} {{ __('app.users.roles') }} {{ __('app.portal.communication.accounts.links') }} {{ __('app.portal.common.actions') }}
{{ $account->name }} {{ $account->email }}
@forelse ($account->roles as $role) {{ $role->name }} @empty — @endforelse
    @foreach ($account->portalStudents as $student)
  • {{ __('app.portal.communication.accounts.type_student') }} {{ $student->localizedName() }} {{ $student->student_uid }}
  • @endforeach @foreach ($account->portalGuardians as $guardian)
  • {{ __('app.portal.communication.accounts.type_guardian') }} {{ $guardian->name_en }} {{ $guardian->student?->localizedName() }}
  • @endforeach
@can('portal_accounts.delete') @foreach ($account->portalStudents as $student) @endforeach @foreach ($account->portalGuardians as $guardian) @endforeach @endcan
{{ $accounts->links() }}
@endif