@push('styles') @endpush @if ($errors->any()) @foreach ($errors->all() as $error) @php notify()->error($error, 'Gagal'); @endphp @endforeach @endif
Jalan Lingkungan - Detail Ruas
Detail Ruas Jalan Lingkungan
Kembali
Detail Ruas Jalan
No Ruas Jalan
{{ $ruas->no_ruas ?? '-' }}
Nama Ruas
{{ $ruas->nama_ruas ?? '-' }}
Desa
{{ $desa->nama_desa }}
Kecamatan
{{ $desa->kecamatan->nama_kecamatan }}
Panjang Jalan
{{ $ruas->panjang ?? '-' }} meter
Lebar Jalan
{{ $ruas->lebar ?? '-' }} meter
@if(session('success')) @endif
Map View
@if($ruas->geojson_path)
Kondisi Jalan
Data Kosong
Baik
Sedang
Rusak Ringan
Rusak Berat

@endif
Titik Pangkal (P)
Titik Ujung (U)
Data STA
@forelse($stas as $index => $sta) @empty @endforelse
No Dari Patok Ke-Patok Jenis Jalan Kondisi Aksi
{{ $stas->firstItem() + $index }} {{ $sta->d_patok ?? '-' }} {{ $sta->k_patok ?? '-' }} @php // Warna Jenis Jalan: // 1 Aspal = teks hitam, background putih // 2 Beton = teks hitam, background abu-abu // 3 Kerikil= teks putih, background orange // 4 Tanah = teks putih, background merah $jenisBadge = [ 1 => ['label' => 'Jalan Aspal', 'class' => 'badge', 'style' => 'color:#000;background-color:#ffffff;border:1px solid #dee2e6;'], 2 => ['label' => 'Jalan Beton', 'class' => 'badge', 'style' => 'color:#000;background-color:#6c757d;'], 3 => ['label' => 'Jalan Kerikil','class' => 'badge', 'style' => 'color:#fff;background-color:#fd7e14;'], 4 => ['label' => 'Jalan Tanah', 'class' => 'badge', 'style' => 'color:#fff;background-color:#dc3545;'], ]; $jenis = $jenisBadge[$sta->jenis_jalan] ?? null; @endphp @if($jenis) {{ $jenis['label'] }} @else - @endif @php // Warna Kondisi: // Baik = teks putih, background hijau // Sedang = teks putih, background kuning // Rusak Ringan= teks putih, background orange // Rusak Berat = teks putih, background merah $kondisi = strtolower($sta->kondisi_jalan ?? ''); $kondisiMap = [ 'baik' => ['label' => 'Baik', 'class' => 'badge', 'style' => 'color:#fff;background-color:#198754;'], 'sedang' => ['label' => 'Sedang', 'class' => 'badge', 'style' => 'color:#000;background-color:#ffc107;'], 'rusak ringan' => ['label' => 'Rusak Ringan', 'class' => 'badge', 'style' => 'color:#fff;background-color:#fd7e14;'], 'rusak berat' => ['label' => 'Rusak Berat', 'class' => 'badge', 'style' => 'color:#fff;background-color:#dc3545;'], ]; $k = $kondisiMap[$kondisi] ?? null; @endphp @if($k) {{ $k['label'] }} @else - @endif
Belum ada data STA
@if($stas->hasPages())
Menampilkan {{ $stas->firstItem() }} sampai {{ $stas->lastItem() }} dari {{ $stas->total() }} data
{{ $stas->links('pagination.bootstrap-5') }}
@endif
@push('scripts') @endpush