@extends('layouts.cork')
@section('title', $title)
@section('page-css')
@endsection
@section('breadcrumb')
@endsection
@section('content')
{{ $school->name }}
@if (isset($school->mailing_address))
Mailing Address: {{ $school->mailing_address }}
@endif @if (isset($school->mailing_city))
{{ $school->mailing_city }},
@endif @if (isset($school->mailing_state))
{{ $school->mailing_state }}
@endif @if (isset($school->mailing_zip))
{{ $school->mailing_zip }}
@endif @if (isset($school->mailing_zip4))
-{{ $school->mailing_zip4 }}
@endif
@if (isset($school->site_address))
Site Address: {{ $school->site_address }}
@endif @if (isset($school->site_city))
{{ $school->site_city }},
@endif @if (isset($school->site_state))
{{ $school->site_state }}
@endif @if (isset($school->site_zip))
{{ $school->site_zip }}
@endif
@if (isset($school->phone))
Phone:
{{ substr($school->phone, 0, 3) }}-{{ substr($school->phone, 3, 3) }}-{{ substr($school->phone, 6, 4) }}
@empty($school->ext)
@endempty
@endif @if (isset($school->ext))
Ext: {{ $school->ext }}
@endif
@if (isset($school->fax))
Fax:
{{ substr($school->fax, 0, 3) }}-{{ substr($school->fax, 3, 3) }}-{{ substr($school->fax, 6, 4) }}
@empty($school->fax_ext)
@endempty
@endif @if (isset($school->fax_ext))
Ext: {{ $school->fax_ext }}
@endif
@if (isset($school->website))
Website: {{ $school->website }}
@endif
@if (isset($school->notes))
Notes: {{ $school->notes }}
@endif
@if ($students->isEmpty())
No Students Found
@else
{{ $students->count() }} Students
| Name |
Grade |
Email |
Enrollments |
|
@foreach ($students as $s)
| {{ $s->first_name }}
{{ $s->last_name }} |
{{ $s->grade }} |
{{ $s->email }} |
{{ $s->enrollments->count() }} |
|
{{--
@if ($s->enrollments->count() == 0)
| No enrollments |
@else
@foreach ($s->enrollments as $e)
| {{ $e->section->course->name }}
|
@endforeach
@endif --}}
{{--
| |
--}}
@endforeach
@endif
@endsection
@section('page-js')
@endsection