@extends('layouts.cork') @section('title', $title) @section('page-css') @endsection @section('breadcrumb')
@endsection @section('content') Name: {{ $student->first_name . ' ' . $student->last_name }}
School: {{ optional($student->school)->name ?? 'N/A' }}
Email: {{ $student->email }}
DOB: {{ date('m/d/Y', strtotime($student->dob)) }}
@if(isset($student->phone))Phone: {{ substr($student->phone, 0, 3) }}-{{ substr($student->phone, 3, 3) }}-{{ substr($student->phone, 6, 4) }}
@endif @if(isset($student->ext)) Ext: {{ $student->ext }}
@endif Grade: {{ $student->grade }}
Gender: @if ($student->gender === 'M') Male @else Female @endif
SSID: {{ $student->ssid }}
IEP?: @if ($student->iep) Yes @else No @endif
504?: @if ($student->has_504) Yes @else No @endif
@if(isset($student->notes))Notes: {{ $student->notes }}@endif @if($contacts->isEmpty())

No School Contacts Found

@else

School Contacts

@foreach ($contacts as $contact) @endforeach
Last Name First Name School Position Email Phone
{{ $contact->last_name }} {{ $contact->first_name }} {{ optional($contact->school)->name ?? 'N/A' }} {{ optional($contact->position)->position ?? 'N/A' }} {{ $contact->email }} {{ $contact->formattedPhone() }}
@endif @if($student->enrollments->isEmpty())

No Enrollments Found

@else

Enrollments

@foreach($student->enrollments as $e) @endforeach
Year Name Status Dual Credit Action
{{ optional($e->year)->year ?? 'N/A' }} {{ optional(optional($e->section)->course)->name ?? 'N/A' }} @if($e->section && $e->section->termDesc()) ({{ $e->section->termDesc() }}) @endif @if($e->section && $e->section->teacher) - {{ $e->section->teacher->last_name }}, {{ substr($e->section->teacher->first_name, 0, 1) }} @endif @if ($e->status === 'A') Approved @elseif ($e->status === 'D') Denied @elseif ($e->status === 'R') Dropped @else Waitlist @endif @if ($e->dual_credit === 'Y') Yes @else No @endif     @if (auth()->user()->role_id == 1) @endif
@endif

@if($student->enrollments->count() == 0) @endif

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