@error('schooltype') {{ $message }} @enderror
@error('schoolname')

{{ $message }}

@enderror
@if ($schools == null)

No School

@endif @if ($schools != null)
Schools
@if ($schools->count() < 1) @endif @if ($schools->count() > 0) @foreach ($schools as $index => $school) @endforeach @endif
# School Rep Name Rep Username Rep Phone
No School
{{ $index + 1 }} {{ $school->name }} {{ $school->schoolrep ? $school->schoolrep->name : 'No Rep' }} {{ $school->schoolrep ? $school->schoolrep->uid : 'Nil' }} {{ $school->category ? $school->category->phone : 'Nil' }}
@endif