@extends('layouts.cork') @section('title', $title) @section('page-css') @endsection @section('breadcrumb')
@endsection @section('content') {{ $enrollment->student->first_name . ' ' . $enrollment->student->last_name }}
{{ $enrollment->student->email }}
Section: {{ $enrollment->year->year }} {{ $enrollment->section->course->name }} ({{ $enrollment->section->termDesc() }})
@if (isset($enrollment->phone)) {{ substr($enrollment->phone, 0, 3) }}-{{ substr($enrollment->phone, 3, 3) }}-{{ substr($enrollment->phone, 6, 4) }} @endif @if (isset($enrollment->ext)) Ext: {{ $enrollment->ext }} @endif

Teacher Information

{{ $enrollment->section->teacher->first_name}} {{ $enrollment->section->teacher->last_name}}
{{ $enrollment->section->teacher->email}}
@if(isset($enrollment->section->teacher->phone)){{ $enrollment->section->teacher->formattedPhone()}} @endif


@if (auth()->user()->role_id == 1) @else @if ($enrollment->status != 'R') @php $canDrop = true; if (auth()->user()->role_id == 3) { $currentDate = now(); $year = $enrollment->year; $sectionTerm = $enrollment->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 @endif

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