@extends('layouts.cork') @section('title', $title) @section('page-css') @endsection @section('breadcrumb')
@endsection @section('content') {{ $teacher->first_name . ' ' . $teacher->last_name }}
{{ $teacher->email }}
@if(isset($teacher->phone)){{ substr($teacher->phone, 0, 3) }}-{{ substr($teacher->phone, 3, 3) }}-{{ substr($teacher->phone, 6, 4) }} @endif @if(isset($teacher->ext)) Ext: {{ $teacher->ext }}@endif
@if($teacher->sections->isEmpty())

No Courses Found

@else
@foreach($teacher->sections as $section) @if($section->year_id != 3)@continue @endif

@if($section->enrollments->isEmpty())
No Enrollments Found
@else @foreach ($section->enrollments as $e) @endforeach
School Last Name First Name Email Grade Dual Credit
@if (isset($e->student->school->name)) {{ $e->student->school->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->grade)) {{ $e->student->grade }} @endif @if (isset($e->dual_credit)) @if ($e->dual_credit == 1) Yes @else No @endif @endif
@endif
@endforeach
@endif

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