@foreach ($info->teams as $i => $team) {{-- Add the header to the top of every page --}} @if (($i) % 3 == 0)
{{ $info->header }}
@endif {{-- Add the team information --}}
{{-- Title --}}
{{-- Line, auto adjusted for size --}}
@if (strlen($team->name) > 35) {{ $team->name }} @else {{ $team->name }} @endif {{ $team->mascot }}
{{-- Information --}}
{{-- Team/School Information & Contacts --}} {{-- Team Photo --}} {{-- Team Roster --}}
{{-- School Logo --}} @if(!is_null($team->logo)) @endif {{-- School Name --}}
{{ $team->school->name }} @if (!is_null($team->school2))
Coop: {{ $team->school2->name }} @endif
{{-- Information --}} @if (!is_null($team->location)) @endif @if (!is_null($team->colors)) @if (strlen($team->colors) >= 24) @else @endif @endif @if (!is_null($team->supt)) @endif @if (!is_null($team->prin)) @endif @if (!is_null($team->ad)) @endif {{-- --}} @if (count($team->asst_coaches) > 1) @endif @if (count($team->choreographers) > 0) @endif {{-- @if (!is_null($team->routine_theme)) @endif --}}
Location {{ $team->location }}
Classification {{ $team->classification }}
Division {{ preg_replace('/\(|\)/', '', $team->assigned_division) }}
Colors{{ $team->colors }}{{ $team->colors }}
 
Superintendent {{ $team->supt->getDisplayName() }}
Principal {{ $team->prin->getDisplayName() }}
Athletic Director {{ $team->ad->getDisplayName() }}
 
Head Coach {{ $team->head_coach->school_staff->getDisplayName() }}
Head @if (count($team->head_coaches) == 1) Coach @else Coaches @endif @foreach ($team->head_coaches as $j => $head_coach) @if (!is_null($head_coach->school_staff->getDisplayName())) {{ $head_coach->school_staff->getDisplayName() }}@if ($j < (count($team->head_coaches) + 1))
@endif @endif @endforeach
Assistant @if (count($team->asst_coaches) == 1) Coach @else Coaches @endif @foreach ($team->asst_coaches as $j => $asst_coach) @if (!is_null($asst_coach->school_staff->getDisplayName())) {{ $asst_coach->school_staff->getDisplayName() }}@if ($j < (count($team->asst_coaches) + 1))
@endif @endif @endforeach
 
@if (count($team->choreographers) == 1) Choreographer @else Choreographers @endif @if (count($team->choreographers) == 1) {{ $team->choreographers[0] }} @else {{ $team->choreographers[0] }}
{{ $team->choreographers[1] }} @endif
 
Routine Theme {{ $team->routine_theme }}
@if (file_exists(public_path() . '/' . $team->photo)) @else
A team photo was not provided by the school.
@endif
@if (count($team->participants) > 0) @foreach ($team->participants as $participant) @if ($participant->is_captain) @else @endif @endforeach @foreach ($team->alternates as $alternate) @endforeach
Name Grade
C{{ $participant->name }} {{ $participant->grade }}
Alt: {{ $alternate->name }} {{ $alternate->grade }}
@else
A team roster was not provided by the school.
@endif @if (!is_null($team->routine_theme))

Routine Theme
{{ $team->routine_theme }}
@endif
{{-- Add a footer and page break after every 3rd team --}} @if (($i + 1) % 3 == 0) @if ($i < count($info->teams) - 1)