@extends('layouts.cork') @section('title', $title) @section('page-css') @endsection @section('breadcrumb')
@endsection @section('content')
Total Enrollments
@if (auth()->user()->role_id == 1 || auth()->user()->role_id == 2) @if ($totalCancelledSectionEnrollments > 0)
Cancelled Section Enrollments (@if ($totalCancelledSectionEnrollments > 4) 4 of @endif{{ $totalCancelledSectionEnrollments }})
@if ($totalCancelledSectionEnrollments > 0) @foreach ($cancelledSectionEnrollments as $c) @endforeach
Student Enrollment Action
{{ App\Models\Student::find($c->student_id)->last_name }}, {{ App\Models\Student::find($c->student_id)->first_name }} {{ App\Models\Course::find(App\Models\Section::find($c->section_id)->course_id)->name }} View | Edit
@else
Nice! No cancelled section enrollments!
@endif
@endif @if ($waitListEnrollmentsReadyToAdd->count() > 0)
Waitlist Enrollments With Open Seats
@foreach ($waitListEnrollmentsReadyToAdd as $w) @php if (App\Models\Section::find($w->section_id)->openSeats() <= 0) { continue; } @endphp
{{ substr(App\Models\Student::find($w->student_id)->last_name, 0, 1) }}{{ substr(App\Models\Student::find($w->student_id)->first_name, 0, 1) }}

{{ App\Models\Student::find($w->student_id)->last_name }}, {{ App\Models\Student::find($w->student_id)->first_name }}

{{ substr(App\Models\Section::find($w->section_id)->course->name, 0, 35) }}

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