@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
| Last Name |
First Name |
Email |
School |
Grade |
@if (auth()->user()->role_id != 4)
Action |
@endif
@foreach ($section->enrollments as $e)
| {{ $e->student->last_name ?? '' }} |
{{ $e->student->first_name ?? '' }} |
{{ $e->student->email ?? '' }} |
{{ $e->student->school->name ?? '' }} |
{{ $e->student->grade ?? '' }} |
@if (auth()->user()->role_id != 4)
View |
Edit |
Delete
|
@endif
@endforeach
@endif
@if ($facilitators->isEmpty())
No Facilitators Found
@else
{{ $facilitators->count() }} Facilitators
| Last Name |
First Name |
School |
Position |
Email |
Phone |
@foreach ($facilitators as $facilitator)
| {{ $facilitator->last_name }} |
{{ $facilitator->first_name }} |
{{ $facilitator->school->name }} |
{{ $facilitator->position->position }} |
{{ $facilitator->email }} |
{{ $facilitator->formattedPhone() }} |
@endforeach
@endif
@endif
@if (auth()->user()->role_id == 1 || auth()->user()->role_id == 2)
@endif
@endsection
@section('page-js')
@endsection