@extends('layouts.app') @section('title', 'Daftar Sekolah - Admin KCD') @section('content')

Daftar Sekolah

Data sekolah di wilayah KCD Anda

Total Sekolah

{{ $stats['total'] }}

Institusi
Sekolah Aktif

{{ $stats['active'] }}

Beroperasi
Sekolah Negeri

{{ $schools->where('status', 'Negeri')->count() }}

Pemerintah
Sekolah Swasta

{{ $schools->where('status', 'Swasta')->count() }}

Privat
Daftar Sekolah
Total: {{ $schools->count() }} sekolah
@if($schools->isEmpty())

Belum ada sekolah di wilayah KCD ini

@else
@foreach($schools as $index => $school) @endforeach
No NPSN Nama Sekolah Jenjang Status KCD Kepala Sekolah Active
{{ $index + 1 }} {{ $school->npsn }} {{ $school->name }} @if($school->email)
{{ $school->email }} @endif
{{ $school->level }} {{ $school->status }} {{ $school->kcd->name ?? ($school->kabKota->kcd->name ?? '-') }} {{ $school->principal_name ?? '-' }} @if($school->principal_nip)
NIP: {{ $school->principal_nip }} @endif
@if($school->is_active) @else @endif
@endif
@endsection