@extends('layouts.cork') @section('title', $title) @section('page-css') @endsection @section('breadcrumb')
@endsection @section('content')
Course: {{ $section->course->name }}
Term: {{ $section->year->year }} {{ $section->termDesc() }}
Teacher: {{ $section->teacher->last_name . ', ' . $section->teacher->first_name }}
Enrollments: {{ $section->enrollments->count() }} of {{ $section->enrollment_max }} enrolled
Delivery: @if ($section->delivery === 'I') ITV @else Online @endif
Restricted Schools: @if (!empty($section->restricted_school_ids)) Restricted @endif {{ $section->getRestrictedSchoolNames() }}
Description: {{ $section->course->description }}
@if (auth()->user()->role_id == 1 || auth()->user()->role_id == 2 || auth()->user()->role_id == 4) @if ($section->enrollments->isEmpty())

No Enrollments Found

@else

{{ $section->enrollments->count() }} Enrollments

@if (auth()->user()->role_id != 4) @endif @foreach ($section->enrollments as $e) @if (auth()->user()->role_id != 4) @endif @endforeach
Last Name First Name Email School GradeAction
{{ $e->student->last_name ?? '' }} {{ $e->student->first_name ?? '' }} {{ $e->student->email ?? '' }} {{ $e->student->school->name ?? '' }} {{ $e->student->grade ?? '' }} View | Edit | Delete
@endif @if ($facilitators->isEmpty())

No Facilitators Found

@else

{{ $facilitators->count() }} Facilitators

@foreach ($facilitators as $facilitator) @endforeach
Last Name First Name School Position Email Phone
{{ $facilitator->last_name }} {{ $facilitator->first_name }} {{ $facilitator->school->name }} {{ $facilitator->position->position }} {{ $facilitator->email }} {{ $facilitator->formattedPhone() }}
@endif @endif @if (auth()->user()->role_id == 1 || auth()->user()->role_id == 2)

@endif @endsection @section('page-js') @endsection