@extends('layouts.cork') @section('title', $title) @section('page-css') @endsection @section('breadcrumb')
@endsection @section('content') Name: {{ $student->first_name . ' ' . $student->last_name }}
School: {{ App\Models\School::find($student->school_id)->name }}
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 === 'Y') Yes @else No @endif
504?: @if ($student->has_504 === 'Y') Yes @else No @endif
@if(isset($student->notes))Notes: {{ $student->notes }}@endif @if($student->enrollments->isEmpty())

No Enrollments Found

@else

Enrollments

@foreach($student->enrollments as $e) @endforeach
Year Name Status Dual Credit Action
{{ App\Models\Year::find($e->year_id)->year }} {{ App\Models\Section::find($e->section_id)->course->name }} @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