@foreach ($instructors as $instructor) @php($url = route('staff_profile', ['instructor' => $instructor->shortName()]))
@php($file = $instructor->archive->findChildByContentType("Personal Photo")) @if($file) @else @endif
{{ $instructor->lang('name') }}
@endforeach
@php($current = (request()->page)?request()->page:1) @if($current>1) @endif @php($hasDots=false) @for($pos=1;$pos<=$paginationCount;$pos++) @if($pos==1 || $pos==$paginationCount || ( $pos>=($current-2) && $pos<=($current+2) ) ) @php($hasDots=false) @if($pos==$current) {{$pos}} @else @endif @elseif(!$hasDots) @php($hasDots=true) ... @endif @endfor @if($current<$paginationCount) @endif