@extends('layouts.cork') @section('title', $title) @section('page-css') @endsection @section('breadcrumb')
@endsection @section('content') @if (auth()->user()->role_id == 1 || auth()->user()->role_id == 2) @endif
@csrf
@error('year_id')
{{ $errors->first('year_id') }}
@enderror
@error('department_id')
{{ $errors->first('department_id') }}
@enderror
@error('provider_id')
{{ $errors->first('provider_id') }}
@enderror
@error('teacher_id')
{{ $errors->first('teacher_id') }}
@enderror
@error('term')
{{ $errors->first('term') }}
@enderror
@error('dual_credit')
{{ $errors->first('dual_credit') }}
@enderror
@error('availability')
{{ $errors->first('availability') }}
@enderror
@foreach ($sections as $s) @php $s = App\Models\Section::find($s->id) @endphp @endforeach
Year Course Provider Enrollments Dept Term Teacher Action
{{ $s->year->year }} @if (isset($s->course)) {{ $s->course->name }} @endif @if (isset($s->provider->name)) {{ $s->provider->name }} @endif enrollments->count() >= $s->enrollment_max) style="color:red" @elseif($s->enrollments->count() >= 0.75 * $s->enrollment_max) style="color:#eed202" @else style="color:#00AB66" @endif> @if ($s->enrollments->count() >= $s->enrollment_max && auth()->user()->role_id == 3) Waitlist @else {{ $s->enrollments->count() }} of {{ $s->enrollment_max }} @endif @if (isset($s->course->department->name)) {{ $s->course->department->name }} @endif {{ $s->termDesc() }} {{ $s->teacher->last_name . ', ' . substr($s->teacher->first_name, 0, 1) }}   @if (auth()->user()->role_id == 1 || auth()->user()->role_id == 2)   @if($s->enrollmentsAnyStatus->count() == 0) @endif @endif
@endsection @section('page-js') @endsection