@extends('layouts.app') @section('content')
Manajemen kavling, penghuni, dan rumah
| # | Nama | No KTP | No HP | Alamat | {{-- Header --}}Cluster | Blok | No Rumah | {{-- Body --}} @php $clusterMap = [ 'A'=>'Gardenia','B'=>'Gardenia','C'=>'Gardenia', 'D'=>'Gardenia','E'=>'Gardenia','F'=>'Gardenia','G'=>'Gardenia', 'H'=>'Edelweis','I'=>'Edelweis', 'J'=>'J','K'=>'K','L'=>'L', ]; $blok = $p->rumah->blok ?? '-'; $cluster = isset($clusterMap[$blok]) ? 'Cluster '.$clusterMap[$blok] : '-'; @endphpStatus | Status Huni | Tgl Masuk | Tgl Keluar | Aksi | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $p->nama }} | {{ $p->no_ktp }} | {{ $p->email }} | {{ $p->telepon }} | {{ $p->alamat }} | {{ $cluster }} | {{ $blok }} | {{ $p->rumah->no_rumah ?? '-' }} | @if($p->status_huni == 'Kontrak' && $p->tanggal_keluar && now()->gt($p->tanggal_keluar)) Tidak Aktif @else Aktif @endif | {{ $p->status_huni }} | {{ \Carbon\Carbon::parse($p->tanggal_masuk)->format('d-m-Y') }} | {{ $p->tanggal_keluar ?? '-' }} | |
| Belum ada data penghuni | |||||||||||||
| # | Cluster | Blok | No Rumah | Status | Luas Tanah | Harga | Keterangan | Aksi |
|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $clusterR }} | {{ $r->blok }} | {{ $r->no_rumah }} | @if($r->status == 'Kosong') Kosong @else Terisi @endif | {{ $r->luas_tanah ? $r->luas_tanah . ' m²' : '-' }} | @if($r->harga) Rp {{ number_format($r->harga, 0, ',', '.') }} @else - @endif | {{ $r->keterangan ?? '-' }} | |
| Belum ada data rumah | ||||||||