@extends('layouts.cork') @section('title', $title) @section('page-css') @endsection @section('breadcrumb')
@endsection @section('content') {{ $enrollment->student->first_name . ' ' . $enrollment->student->last_name }}{{ $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