@php /* * 학교 리스트 템플릿 * * @param App\Model\School $paginate_school : 학교 목록 */ @endphp @push('head') @endpush
Total {{ number_format($paginate_school->total()) }} @if (isLogin('staff')) {{ Lang::get('template_school.word.download_excel') }} @endif
@if (isLogin('staff')) @foreach (ConfigCode::getCodes('SCHOOL_RANK') as $status)
{{ $status->name or '' }}
@endforeach @else
 
@endif
@if (isLogin('staff')) @endif @if (isLogin('staff')) @endif @php $codes = ConfigCode::whereIn('category', ['COUNTRY', 'UHAKTYPE', 'SCHOOL_RANK']) ->get(['category', 'code', 'name']) ->groupBy('category') ->toArray(); foreach ($codes as $category => &$code) { $code = array_column($code, 'name', 'code'); } unset($code); @endphp @forelse ($paginate_school as $idx => $school) @if (isLogin('staff')) @endif @empty @endforelse
{{ strtoupper(Lang::get('template_school.word.number')) }} {{ strtoupper(Lang::get('template_school.word.country')) }} {{ strtoupper(Lang::get('template_school.word.study_type')) }} {{ strtoupper(Lang::get('template_school.word.school_name')) }} {{ strtoupper(Lang::get('template_school.word.state')) }} {{ strtoupper(Lang::get('template_school.word.city')) }}{{ strtoupper(Lang::get('template_school.word.rank')) }} {{ strtoupper(Lang::get('template_school.word.agency_application')) }}
{{ $paginate_school->total() - $idx - (($paginate_school->currentPage() - 1) * $paginate_school->perPage()) }}
{{ $codes['COUNTRY'][$school->code_country] or ' ' }}
{{ $codes['UHAKTYPE'][$school->code_uhaktype] or ' ' }}
{{ $school->school_name or ' ' }}
{{ $school->school_state or ' ' }}
{{ $school->school_city or ' ' }}
{{ $codes['SCHOOL_RANK'][$school->school_ranking] or ' ' }}
school_agency, 'Y', 'checked')/>
{{ Lang::get('template_school.word.no_school_matches') }}
{{ $paginate_school->appends([ 'school_agency' => Request::get('school_agency'), 'school_rank' => Request::get('school_rank'), 'code_country' => Request::get('code_country'), 'code_uhaktype' => Request::get('code_uhaktype'), 'school_name' => Request::get('school_name'), ])->links('template.form.pagination') }}