@extends('layouts.app') @section('title', 'Daftar Sekolah - Admin Dinas') @section('content')
@if(session('success')) @endif @if(session('error')) @endif @if(session('import_errors')) @endif

Daftar Sekolah

Kelola data sekolah di dinas Anda

Total Sekolah

{{ $totalSekolah }}

Di dinas ini
Negeri

{{ $negeri }}

Sekolah Negeri
Swasta

{{ $swasta }}

Sekolah Swasta
Belum KCD

{{ $belumKcd }}

Perlu mapping
Daftar Sekolah
@forelse($schools as $school) @empty @endforelse
NPSN Nama Sekolah Status Kab/Kota Kepala Sekolah KCD Aksi
{{ $school->npsn }}
{{ $school->name }} @if($school->profile_locked) @endif @if($school->address)
{{ Str::limit($school->address, 50) }} @endif
{{ $school->status }} {{ $school->kabKota?->name ?? '-' }} {{ $school->principal_name ?? '-' }} @if($school->kcd) {{ $school->kcd->name }} @else Belum KCD @endif
@if($school->profile_locked)
@csrf
@else @endif
@csrf @method('DELETE')

Belum ada data sekolah

@endsection