@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 --}}
{{-- 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) >= 32) @else @endif @endif @if (!is_null($team->supt)) @endif @if (!is_null($team->prin)) @endif @if (!is_null($team->ad)) @endif @if (!is_null($team->act_dir)) @endif @if (count($team->asst_coaches) > 0) @endif @if (count($team->managers) > 0) @endif @if (count($team->choreographers) > 0) @endif @if (!is_null($team->routine_theme)) @endif @if ($team->music_count > 0) @endif
Location {{ $team->location }}
Classification {{ $team->classification }}
Division {{ $team->subdivision }}
Colors{{ $team->colors }}{{ $team->colors }}
 
Superintendent {{ $team->supt->getDisplayName() }}
Principal {{ $team->prin->getDisplayName() }}
Athletic Director {{ $team->ad->getDisplayName() }}
Activities Director {{ $team->act_dir->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 @else NO NAME! @endif @endforeach
@if (count($team->managers) == 1) Team Manager @else Team Managers @endif @if (count($team->managers) == 1) {{ $team->managers[0] }} @else {{ $team->managers[0] }}
{{ $team->managers[1] }} @endif
@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 ($team->music_count == 1) Music Selection @else Music Selections @endif @foreach ($team->music as $j => $ms) @if ($j + 1 < $team->music_count) {{ $ms }}
@else {{ $ms }} @endif @endforeach
@if (file_exists(public_path() . '/' . $team->photo)) @else
A team photo was not provided by the school.
@endif
@if (count($team->participants) > 0) @for ($j = 1; $j <= $per_column; $j++) @endfor
@for ($k = (($j * $per_column) - $per_column); $k < ($j * $per_column); $k++) @if (isset($team->participants[$k])) @if ($team->participants[$k]->is_captain) @else @endif @endif @endfor
C @if (strlen($team->participants[$k]->name) > 16) @endif {{ $team->participants[$k]->name }} @if (strlen($team->participants[$k]->name) > 16) @endif {{ $team->participants[$k]->grade }}
@else
A team roster was not provided by the school.
@endif
{{-- Add a footer and page break after every 3rd team --}} @if (($i + 1) % 3 == 0) @if ($i < count($info->teams) - 1)