@extends('layouts.cork') @section('title', $title) @section('page-css') @endsection @section('breadcrumb')
@endsection @section('content') @if (App\Http\Controllers\EnrollmentController::checkEnrollmentPermissions('create', null))
@endif
@csrf
@error('year_id')
{{ $errors->first('year_id') }}
@enderror
@error('school_id')
{{ $errors->first('school_id') }}
@enderror
@error('provider_id')
{{ $errors->first('provider_id') }}
@enderror
@error('section_id')
{{ $errors->first('section_id') }}
@enderror
@error('teacher_id')
{{ $errors->first('teacher_id') }}
@enderror
@error('status')
{{ $errors->first('status') }}
@enderror
@error('term')
{{ $errors->first('term') }}
@enderror
@error('grade')
{{ $errors->first('grade') }}
@enderror
@error('dual_credit')
{{ $errors->first('dual_credit') }}
@enderror
@if ($page == 'waitlist') @endif @foreach ($enrollments as $e) @if ($page == 'waitlist') @endif @endforeach @if ($page == 'waitlist') @endif
DateSchool Course Last Name First Name Email SSID Teacher Provider Term Grade Status Dual Credit Actions
@if ($e->section->openSeats() > 0 && auth()->user()->role_id == 1) @endif @if (isset($e->created_at)) {{ $e->created_at }} @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
DateSchool Course Last Name First Name Email SSID Teacher Provider Term Grade Status Dual Credit Actions
@endsection @section('page-js') @endsection