@php $editing = isset($editingLinkId) && $editingLinkId; @endphp

Link Teacher to Organization

@foreach($this->availableCoursesForSelectedOrg() as $c) @endforeach
@if($editing) @else @endif

Existing Teacher Links

@forelse($links->items() as $link) @empty @endforelse
Teacher Organization Courses Actions
{{ $link['teacher']['name'] ?? '—' }}
{{ $link['teacher']['email'] ?? '' }}
{{ $link['organization']['name'] ?? '—' }} @if(! empty($link['courses']))
    @foreach($link['courses'] as $c)
  • {{ $c['title'] ?? ($c['title'] ?? '—') }}
  • @endforeach
@else No courses assigned @endif
No links found.
{{ $links->links() }}