<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1>FORM TAMBAH DATA RUMAH TANGGA</h1>
                </div>
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a href="#">Home</a></li>
                        <li class="breadcrumb-item active">FORM TAMBAH DATA RUMAH TANGGA</li>
                    </ol>
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>

    <!-- Main content -->
    <section class="content centered">
        <div class="container-fluid ">
            <div class="row">
                <!-- left column -->
                <?php $no = 1 ?>
                <?php $te = 1 ?>
                <?php foreach ($lahan as $u) {
                    $k = $te++
                ?>

                    <div class="col-md-6">
                        <!-- general form elements -->
                        <div class="card card-primary">
                            <div class="card-header">
                                <h3 class="card-title">BLOK VI - SERTIFIKAT TANAH</h3>
                                <h6 class="float-right">LAHAN ke-<?= $no++ ?></h6>
                            </div>

                            <form method="post" action="<?= base_url() ?>blok6">
                                <div class="card-body">
                                    <div class="row">
                                        <div class="col-md-3">
                                            <label for="namalhn">Nama Lahan</label>
                                        </div>
                                        <div class="col-md-9">
                                            <div class="form-group">
                                                <input type="hidden" id="id" name="id" class="form-control col-md-7 col-xs-12" value="<?= $u->id_pm_lahan ?>">
                                                <input type="hidden" id="nokk" name="nokk" class="form-control col-md-7 col-xs-12" value="<?= $u->nokk ?>">
                                                <input type="hidden" id="id_kk_fgn" name="id_kk_fgn" class="form-control col-md-7 col-xs-12" value="<?= $u->id_kk_fgn ?>">
                                                <input type="text" class="form-control" id="namalhn" name="namalhn" placeholder="Nama Lahan" value="<?= $u->namalhn ?>">
                                            </div>
                                        </div>
                                        <div class="col-md-3">
                                            <label for="hub">Jenis Lahan</label>
                                        </div>
                                        <div class="col-md-2">
                                            <div class="form-group">
                                                <input type="text" class="form-control" name="hub" id="hub" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=50" value="<?= $u->hub ?>">
                                                <?= form_error('hub', '<small class ="text-danger pl-3">', '</small>'); ?>
                                            </div>
                                        </div>
                                        <div class=" col-md-2" style="visibility: hidden;">
                                        </div>
                                        <div class="col-md-3">
                                            <label for="sppt">Kebedaraan SPPT</label>
                                        </div>
                                        <div class="col-md-2 sppt2">
                                            <div class="form-group">
                                                <input type="text" class="form-control" name="sppt[]" id="sppt[<?php echo $k ?>]" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=50" value="<?= $u->sppt ?>">
                                                <?= form_error('sppt[]', '<small class ="text-danger pl-3">', '</small>'); ?>
                                            </div>
                                        </div>
                                        <div class="col-md-3 spt">
                                            <label for="nopajak">Nomor Objek Pajak</label>
                                        </div>
                                        <div class="col-md-4 spt">
                                            <div class="form-group">
                                                <input type="text" class="form-control" name="nopajak" id="nopajak" maxlength="17" onkeypress="return event.charCode >= 48 && event.charCode <=58" value="<?= $u->nopajak ?>">
                                                <?= form_error('nopajak', '<small class ="text-danger pl-3">', '</small>'); ?>
                                            </div>
                                        </div>

                                        <div class="col-md-3 spt[<?php echo $k ?>]">
                                            <label for="llahan">Luas Lahan</label>
                                        </div>
                                        <div class="col-md-2 spt">
                                            <div class="form-group">
                                                <input type="text" class="form-control" name="llahan" id="llahan" maxlength="9" onkeypress="return event.charCode >= 48 && event.charCode <=58" value="<?= $u->llhan ?>">
                                                <?= form_error('llahan', '<small class ="text-danger pl-3">', '</small>'); ?>
                                            </div>
                                        </div>
                                        <div class="col-md-3 spt">
                                            <label for="haksertif">Hak Kepemilikan Setifikat</label>
                                        </div>
                                        <div class="col-md-2 spt">
                                            <div class="form-group">
                                                <input type="text" class="form-control" name="haksertif" id="haksertif" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=51" value="<?= $u->haksertif ?>">
                                                <?= form_error('haksertif', '<small class ="text-danger pl-3">', '</small>'); ?>
                                            </div>
                                        </div>
                                        <div class="col-md-2 spt" style="visibility: hidden;"> </div>
                                        <div class="col-md-3 nmshm">
                                            <label for="nmhak">Nama Hak Milik</label>
                                        </div>
                                        <div class="col-md-2 nmshm">
                                            <div class="form-group">
                                                <input type="text" class="form-control" name="nmhak" id="nmhak" value="<?= $u->nmhak ?>">
                                                <?= form_error('nmhak', '<small class ="text-danger pl-3">', '</small>'); ?>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!-- /.card-body -->
                                <div class="card-footer">
                                    <button type="submit" class="btn btn-primary">Simpan</button>
                                </div>
                        </div>
                        </form>
                    </div>
                <?php } ?>
            </div>
            <div class="row">
                <!-- left column -->
                <div class="col-md-6">
                    <!-- general form elements -->
                    <div class="card card-primary">
                        <div class="card-header">
                            <h3 class="card-title">BLOK VII - KETERANGAN SOSIAL EKONOMI ANGGOTA KELUARGA</h3>
                            <h6 class="float-right">Ruta ke-</h6>
                        </div>

                        <form method="post" action="<?= base_url() ?>tambah_ruta/blok1">
                            <div class="card-body">
                                <div class="row">
                                    <div class="col-md-3">
                                        <label for="nama">Nama</label>
                                    </div>
                                    <div class="col-md-9">
                                        <div class="form-group">
                                            <input type="text" class="form-control" id="nama" name="nama" placeholder="Nama">
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <label for="nik">NIK</label>
                                    </div>
                                    <div class="col-md-9">
                                        <div class="form-group">
                                            <input type="number" min="0" maxlength="16" minlength="16" class="form-control" name="nik" id="nik" placeholder="NIK">
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <label for="hub">Hubungan dengan Kepala Keluarga</label>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="hub" id="hub" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=57">
                                            <?= form_error('hub', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-2" style="visibility: hidden;">

                                    </div>
                                    <div class="col-md-3">
                                        <label for="jk">Jenis Kelamin</label>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="jk" id="jk" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=50">
                                            <?= form_error('jk', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <label for="umur">Umur</label>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="umur" id="umur" maxlength="2" onkeypress="return event.charCode >= 48 && event.charCode <=58">
                                        </div>
                                    </div>

                                    <div class="col-md-2" style="visibility: hidden;">

                                    </div>
                                    <div class="col-md-3">
                                        <label for="sts">Status Perkawinan</label>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="sts" id="sts" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=52">
                                            <?= form_error('sts', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>

                                    <div class="col-md-10 pemilik">
                                        <label for="pemilik">Kepemilikan akta/buku nikah atau cerai</label>
                                    </div>
                                    <div class="col-md-2 pemilik">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="pemilik" id="pemilik" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=52">
                                            <?= form_error('pemilik', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <label for="kk">Tercantum dalam KK di Keluarga ini</label>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="kk" id="kk" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=52">
                                            <?= form_error('kk', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-2" style="visibility: hidden;"> </div>
                                    <div class="col-md-3">
                                        <label for="ki">Kepemilikan Kartu Identitas</label>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="ki" id="ki" maxlength="2" onkeypress="return event.charCode >= 48 && event.charCode <=58">
                                            <?= form_error('ki', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-12 wnt text-center mt-2">
                                        <label style="color: red;">UNTUK WANITA 10-49 TAHUN KOL (6) = 2</label>
                                    </div>
                                    <div class="col-md-3 wnt">
                                        <label for="hamil">Status Kehamilan</label>
                                    </div>
                                    <div class="col-md-2 wnt">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="hamil" id="hamil" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=50">
                                            <?= form_error('hamil', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-2 wnt" style="visibility: hidden;"> </div>
                                    <div class="col-md-3 wnt">
                                        <label for="kb">Alat KB</label>
                                    </div>
                                    <div class="col-md-2 wnt">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="kb" id="kb" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=50">
                                            <?= form_error('kb', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <label for="jc">Jenis Cacat</label>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="jc" id="jc" maxlength="2" onkeypress="return event.charCode >= 48 && event.charCode <=58">
                                            <?= form_error('jc', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-2" style="visibility: hidden;"> </div>
                                    <div class="col-md-3">
                                        <label for="kronis">Penyakit Kronis/ Menahun</label>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="kronis" id="kronis" maxlength="1" onkeypress="return event.charCode >= 48 && event.charCode <=58">
                                            <?= form_error('kronis', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <label for="kronis">Golongan Darah</label>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="kronis" id="kronis" maxlength="1" onkeypress="return event.charCode >= 48 && event.charCode <=58">
                                            <?= form_error('kronis', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-7" style="visibility: hidden;"> </div>
                                    <div class="col-md-12 5thnn  text-center mt-3">
                                        <label style="color: red;">UNTUK ANGGOTA KELUARGA 5 TAHUN KE ATAS</label>
                                    </div>
                                    <div class="col-md-3 5thnn">
                                        <label for="sekolah">Partisipasi Sekolah</label>
                                    </div>
                                    <div class="col-md-2 5thnn">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="sekolah" id="sekolah" maxlength="1" onkeypress="return event.charCode >= 48 && event.charCode <=50">
                                            <?= form_error('sekolah', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-10 5thn tek">
                                        <label for="pend">Jenjang dan Jenis Pendidikan tertinggi yang pernah/sedang diduduki</label>
                                    </div>
                                    <div class="col-md-2 5thn tek">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="pend" id="pend" maxlength="2" onkeypress="return event.charCode >= 48 && event.charCode <=58">
                                            <?= form_error('pend', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-10 5thn tek">
                                        <label for="kelas">Kelas Tertinggi yang Pernah/sedang diduduki</label>
                                    </div>
                                    <div class="col-md-2 5thn tek">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="kelas" id="kelas" maxlength="1" onkeypress="return event.charCode >= 48 && event.charCode <=58">
                                            <?= form_error('kelas', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-10 5thn tek">
                                        <label for="ijazah">Ijazah tertinggi yang Dimiliki</label>
                                    </div>
                                    <div class="col-md-2 5thn tek">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="ijazah" id="ijazah" maxlength="1" onkeypress="return event.charCode >= 48 && event.charCode <=58">
                                            <?= form_error('ijazah', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-12   text-center ">
                                        <label style="color: dimgray;">Ketenagakerjaan</label>
                                    </div>
                                    <div class="col-md-3 ">
                                        <label for="pensi">Pensiunan</label>
                                    </div>
                                    <div class="col-md-2 ">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="pensi" id="pensi" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=50">
                                            <?= form_error('pensi', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-2 " style="visibility: hidden;"> </div>
                                    <div class="col-md-3 ">
                                        <label for="kerja">Bekerja / Membantu Bekerja</label>
                                    </div>
                                    <div class="col-md-2 ">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="kerja" id="kerja" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=50">
                                            <?= form_error('kerja', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-3 krja">
                                        <label for="lapangan">Lapangan Usaha dari Pekerjaan Utama</label>
                                    </div>
                                    <div class="col-md-2 krja">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="lapangan" id="lapangan" maxlength="2" onkeypress="return event.charCode >= 48 && event.charCode <=58">
                                            <?= form_error('lapangan', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-2 krja" style="visibility: hidden;"> </div>
                                    <div class="col-md-3 krja">
                                        <label for="statkerja">Status Kedudukan dalam Bekerja</label>
                                    </div>
                                    <div class="col-md-2 krja">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="statkerja" id="statkerja" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=57">
                                            <?= form_error('statkerja', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-3 krja">
                                        <label for="jumpekerja">Jumlah Pekerja</label>
                                    </div>
                                    <div class="col-md-2 krja">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="jumpekerja" id="jumpekerja" maxlength="3" onkeypress="return event.charCode >= 48 && event.charCode <=58">
                                            <?= form_error('jumpekerja', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-2 krja" style="visibility: hidden;"> </div>
                                    <div class="col-md-3 krja">
                                        <label for="tmptlokasi">Tempat Lokasi/ Usaha</label>
                                    </div>
                                    <div class="col-md-2 krja">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="tmptlokasi" id="tmptlokasi" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=50">
                                            <?= form_error('tmptlokasi', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-3 krja">
                                        <label for="omsetusaha">Omset Usaha Perbulan</label>
                                    </div>
                                    <div class="col-md-2 krja">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="omsetusaha" id="omsetusaha" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=52">
                                            <?= form_error('omsetusaha', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-7 " style="visibility: hidden;"> </div>
                                    <div class="col-md-12  text-center ">
                                        <label style="color: orangered;">==================================================</label>
                                    </div>
                                    <div class="col-md-3 ">
                                        <label for="agm">Agama</label>
                                    </div>
                                    <div class="col-md-2 ">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="agm" id="agm" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=56">
                                            <?= form_error('agm', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-2 " style="visibility: hidden;"> </div>
                                    <div class="col-md-3 ">
                                        <label for="suku">Suku</label>
                                    </div>
                                    <div class="col-md-2 ">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="suku" id="suku" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58">
                                            <?= form_error('suku', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-3 ">
                                        <label for="dmsl">Domisili</label>
                                    </div>
                                    <div class="col-md-2 ">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="dmsl" id="dmsl" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=51">
                                            <?= form_error('dmsl', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-2 " style="visibility: hidden;"> </div>
                                    <div class="col-md-3 ">
                                        <label for="bansos">Program Bansos</label>
                                    </div>
                                    <div class="col-md-2 ">
                                        <div class="form-group">
                                            <input type="text" class="form-control" name="bansos" id="bansos" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58">
                                            <?= form_error('bansos', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                </div>

                            </div>
                            <!-- /.card-body -->

                            <div class="card-footer">
                                <button type="submit" class="btn btn-primary">Simpan</button>
                            </div>
                    </div>
                    </form>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-6 mb-2">
                <a href="<?= base_url() ?>tambah_ruta/blok45/<?= $blok1[0]->id ?>" class="btn bg-navy">Kembali</a>
                <a href="" class="float-right btn btn-danger">Hapus Data Semua</a>
            </div>
        </div>
</div><!-- /.container-fluid -->
</section>

<!-- /.content -->
</div>