{{ __('Data Sekolah') }}

+ Tambah Sekolah
@if(session('success')) @endif
@forelse ($schools as $index => $school) @empty @endforelse
No Identitas Sekolah Jenjang Kepala Sekolah Lokasi / Kontak Aksi
{{ $index + 1 }}
@if($school->logo) Logo @else
{{ substr($school->name, 0, 1) }}
@endif
{{ $school->name }}
{{ $school->email ?? 'Belum ada email' }}
@php $badgeColor = match($school->level) { 'SD' => 'bg-red-100 text-red-800', 'SMP' => 'bg-blue-100 text-blue-800', 'SMA' => 'bg-gray-100 text-gray-800', 'SMK' => 'bg-orange-100 text-orange-800', default => 'bg-green-100 text-green-800', }; @endphp {{ $school->level }}
{{ $school->kepsek_name ?? '-' }}
Telp: {{ $school->phone ?? '-' }}
{{ Str::limit($school->address ?? '-', 40) }}
@csrf @method('DELETE')

Belum ada data sekolah.

Silakan klik tombol tambah di atas.