@extends('dashboard.layouts.app') @section('title', 'Detail Data Sekolah') @section('content')
Detail Data Sekolah
Informasi Dasar
Identitas Sekolah

NPSN: {{ $sekolah->npsn }}

Nama: {{ $sekolah->nama_sekolah }}

Jenjang: {{ ucfirst($sekolah->jenjang) }}

Status & Akreditasi

Status: {{ ucfirst($sekolah->status) }}

Akreditasi: {{ strtoupper($sekolah->akreditasi) }}

Lokasi & Kontak
Alamat

{{ $sekolah->alamat ?? '-' }}

Kecamatan: {{ $sekolah->kecamatan?->nama_kecamatan ?? '-' }}

Desa: {{ $sekolah->desa?->nama_desa ?? '-' }}

Kontak

Telepon: {{ $sekolah->telepon ?: '-' }}

Email: {{ $sekolah->email ?: '-' }}

Website: {{ $sekolah->website ?: '-' }}

Informasi Tambahan
Sejarah

Tahun Berdiri: {{ $sekolah->tahun_berdiri }}

Kepala Sekolah

{{ $sekolah->kepala_sekolah }}

Treatment
@php $treatments = []; if (strtolower($sekolah->rusak_ringan ?? '') === 'ya') { $treatments[] = ['label' => 'Rusak Ringan', 'color' => 'warning', 'custom' => false]; } if (strtolower($sekolah->rusak_sedang ?? '') === 'ya') { $treatments[] = ['label' => 'Rusak Sedang', 'color' => 'warning', 'custom' => true, 'bg' => '#ff9800']; } if (strtolower($sekolah->rusak_berat ?? '') === 'ya') { $treatments[] = ['label' => 'Rusak Berat', 'color' => 'danger', 'custom' => false]; } if (strtolower($sekolah->kelas_baru ?? '') === 'ya') { $treatments[] = ['label' => 'Kelas Baru', 'color' => 'success', 'custom' => false]; } if (strtolower($sekolah->air_garam ?? '') === 'ya') { $treatments[] = ['label' => 'Air Garam', 'color' => 'info', 'custom' => false]; } @endphp @if(count($treatments) > 0)
@foreach($treatments as $treatment) @if(isset($treatment['custom']) && $treatment['custom']) {{ $treatment['label'] }} @else {{ $treatment['label'] }} @endif @endforeach
@else

Tidak ada treatment

@endif
Dokumen
@if($sekolah->geojson_file) Download GeoJSON @else

Tidak ada file GeoJSON

@endif
Kembali
Edit
@csrf @method('DELETE')
@endsection