@if ($page == 'waitlist')
@if ($e->section->openSeats() > 0 && auth()->user()->role_id == 1)
@endif
@if (isset($e->created_at))
{{ $e->created_at }}
@endif
|
@endif
@if (isset($e->student->school->name))
{{ $e->student->school->name }}
@endif
|
@if (isset($e->section->course->name))
{{ $e->section->course->name }}
@endif
|
@if (isset($e->student->last_name))
{{ $e->student->last_name }}
@endif
|
@if (isset($e->student->first_name))
{{ $e->student->first_name }}
@endif
|
@if (isset($e->student->email))
{{ $e->student->email }}
@endif
|
@if (isset($e->student->ssid))
{{ $e->student->ssid }}
@endif
|
@if (isset($e->section->teacher->last_name))
{{ $e->section->teacher->last_name }},
{{ substr($e->section->teacher->first_name, 0, 1) }}.
@endif
|
@if (isset($e->section->provider->name))
{{ $e->section->provider->name }}
@endif
|
@if (isset($e->section->term))
{{ $e->section->termDesc() }}
@endif
|
@if (isset($e->student->grade))
{{ $e->student->grade }}
@endif
|
{{ App\Models\Enrollment::find($e->id)->statusDesc() }} |
@if (isset($e->dual_credit))
@if ($e->dual_credit == 1)
Yes
@else
No
@endif
@endif
|
@if ($e->checkEnrollmentPermissions('show', $e->id))
@endif
@if ($e->checkEnrollmentPermissions('edit', $e->id))
@endif
@if ($e->checkEnrollmentPermissions('delete', $e->id))
@endif
@if ($e->checkEnrollmentPermissions('drop', $e->id) && $e->status != 'R')
@php
$canDrop = true;
if (auth()->user()->role_id == 3) {
$currentDate = now();
$year = $e->year;
$sectionTerm = $e->section->term;
if (
($sectionTerm == 'F' || $sectionTerm == 'Y') &&
$year->school_self_enroll_end_date_fall
) {
$canDrop = $currentDate <= $year->school_self_enroll_end_date_fall;
} elseif ($sectionTerm == 'S' && $year->school_self_enroll_end_date_spring) {
$canDrop = $currentDate <= $year->school_self_enroll_end_date_spring;
}
}
@endphp
@if ($canDrop)
@endif
@endif
|
@endforeach