<div class="content-wrapper">
    <?php
    $error = $this->session->flashdata('error');
    if (!empty($error)) {
        echo $error;
    }
    ?>
    <?= $this->session->flashdata("informasi") ?>
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1>UBAH 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">UBAH DATA RUMAH TANGGA</li>
                    </ol>
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>

    <!-- Main content -->
    <section class="content centered">
        <div class="container-fluid ">
            <div class="row">
                <div class="col-12">
                    <div class="card">
                        <h3 class="card-title text-center mt-3" style="color: crimson;">BLOK VII - KETERANGAN SOSIAL EKONOMI ANGGOTA KELUARGA</h3>

                        <div class="card-body">
                            <div class="tab-content">
                                <div class="col-md-12">
                                    <!-- 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">Rumah Tangga Ke-</h6> -->
                                        </div>
                                        <form method="post" action="<?= base_url() ?>kelola_ruta_agt/ubahart/<?= $k['id_agt'] ?>/<?= $k['id_pm_agt'] ?>">
                                            <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="hidden" id="id" name="id" class="form-control col-md-7 col-xs-12" value="<?= $k['id_pm_agt']  ?>">
                                                            <input type="hidden" id="nokk" name="nokk" class="form-control col-md-7 col-xs-12" value="<?= $k['nokk']  ?>">
                                                            <input type="text" class="form-control" id="nama" name="nama" placeholder="Nama" value="<?= $k['nama'] ?>">
                                                            <?= form_error('nama', '<small class ="text-danger pl-3">', '</small>'); ?>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-3">
                                                        <label for="nik">NIK</label>
                                                    </div>
                                                    <div class="col-md-9">
                                                        <div class="form-group">
                                                            <input type="text" min="0" maxlength="16" minlength="16" class="form-control" name="nik" id="nik" placeholder="NIK" onkeypress="return event.charCode >= 48 && event.charCode <=58" value="<?= $k['nik']  ?>">
                                                            <?= form_error('nik', '<small class ="text-danger pl-3">', '</small>'); ?>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-3">
                                                        <label for="hubkel">Hubungan dengan Kepala Keluarga</label>
                                                    </div>
                                                    <div class="col-md-2">
                                                        <div class="form-group">
                                                            <input type="text" class="form-control" name="hubkel" id="hubkel" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=57" value="<?= $k['hubkel']  ?>">
                                                            <?= form_error('hubkel', '<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" value="<?= $k['jk'] ?>">
                                                            <?= 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="3" onkeypress="return event.charCode >= 48 && event.charCode <=58" value="<?= $k['umur'] ?>">
                                                        </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" value="<?= $k['sts'] ?>">
                                                            <?= form_error('sts', '<small class ="text-danger pl-3">', '</small>'); ?>
                                                        </div>
                                                    </div>

                                                    <div class="col-md-3 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" value="<?= $k['pemilik']  ?>">
                                                            <?= form_error('pemilik', '<small class ="text-danger pl-3">', '</small>'); ?>
                                                        </div>
                                                    </div>
                                                    <div style="display: none;" class="col-md-7 pemilik"></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" value="<?= $k['kk']  ?>">
                                                            <?= 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" value="<?= $k['ki']  ?>">
                                                            <?= 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" value="<?= $k['hamil']  ?>">
                                                            <?= 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 >= 48 && event.charCode <=58" value="<?= $k['kb']  ?>">
                                                            <?= form_error('kb', '<small class ="text-danger pl-3">', '</small>'); ?>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-12  text-center ">
                                                        <label style="color: orangered;">= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = </label>
                                                    </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" value="<?= $k['jc']  ?>">
                                                            <?= 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" value="<?= $k['kronis']  ?>">
                                                            <?= form_error('kronis', '<small class ="text-danger pl-3">', '</small>'); ?>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-3">
                                                        <label for="goldar">Golongan Darah</label>
                                                    </div>
                                                    <div class="col-md-2">
                                                        <div class="form-group">
                                                            <input type="text" class="form-control" name="goldar" id="goldar" maxlength="1" onkeypress="return event.charCode >= 48 && event.charCode <=58" value="<?= $k['goldar'] ?>">
                                                            <?= form_error('goldar', '<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" value="<?= $k['sekolah'] ?>">
                                                            <?= form_error('sekolah', '<small class ="text-danger pl-3">', '</small>'); ?>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-10 5thn">
                                                        <label for="pend">Jenjang dan Jenis Pendidikan tertinggi yang pernah/sedang diduduki</label>
                                                    </div>
                                                    <div class="col-md-2 5thn">
                                                        <div class="form-group">
                                                            <input type="text" class="form-control" name="pend" id="pend" maxlength="2" onkeypress="return event.charCode >= 48 && event.charCode <=58" value="<?= $k['pend'] ?>">
                                                            <?= form_error('pend', '<small class ="text-danger pl-3">', '</small>'); ?>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-10 5thn">
                                                        <label for="kelas">Kelas Tertinggi yang Pernah/sedang diduduki</label>
                                                    </div>
                                                    <div class="col-md-2 5thn">
                                                        <div class="form-group">
                                                            <input type="text" class="form-control" name="kelas" id="kelas" maxlength="1" onkeypress="return event.charCode >= 48 && event.charCode <=58" value="<?= $k['kelas'] ?>">
                                                            <?= form_error('kelas', '<small class ="text-danger pl-3">', '</small>'); ?>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-10 5thn">
                                                        <label for="ijazah">Ijazah tertinggi yang Dimiliki</label>
                                                    </div>
                                                    <div class="col-md-2 5thn">
                                                        <div class="form-group">
                                                            <input type="text" class="form-control" name="ijazah" id="ijazah" maxlength="1" onkeypress="return event.charCode >= 48 && event.charCode <=58" value="<?= $k['ijazah'] ?>">
                                                            <?= 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" value="<?= $k['pensi'] ?>">
                                                            <?= 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" value="<?= $k['kerja'] ?>">
                                                            <?= 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" value="<?= $k['lapangan'] ?>">
                                                            <?= 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" value="<?= $k['statkerja'] ?>">
                                                            <?= form_error('statkerja', '<small class ="text-danger pl-3">', '</small>'); ?>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-3 jp">
                                                        <label for="jumpkerja">Jumlah Pekerja</label>
                                                    </div>
                                                    <div class="col-md-2 jp">
                                                        <div class="form-group">
                                                            <input type="text" class="form-control" name="jumpkerja" id="jumpkerja" maxlength="3" onkeypress="return event.charCode >= 48 && event.charCode <=58" value="<?= $k['jumpkerja'] ?>">
                                                            <?= form_error('jumpkerja', '<small class ="text-danger pl-3">', '</small>'); ?>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-2 jp" style="visibility: hidden;"> </div>
                                                    <div class="col-md-3 jp">
                                                        <label for="tmptlokasi">Tempat Lokasi/ Usaha</label>
                                                    </div>
                                                    <div class="col-md-2 jp">
                                                        <div class="form-group">
                                                            <input type="text" class="form-control" name="tmptlokasi" id="tmptlokasi" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=50" value="<?= $k['tmptlokasi'] ?>">
                                                            <?= form_error('tmptlokasi', '<small class ="text-danger pl-3">', '</small>'); ?>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-2 k" style="visibility: hidden;"> </div>

                                                    <div class="col-md-3 jp">
                                                        <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" value="<?= $k['omsetusaha'] ?>">
                                                            <?= 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" value="<?= $k['agm'] ?>">
                                                            <?= 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" value="<?= $k['suku'] ?>">
                                                            <?= 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" value="<?= $k['dmsl'] ?>">
                                                            <?= 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="2" onkeypress="return event.charCode >= 48 && event.charCode <=58" value="<?= $k['bansos'] ?>">
                                                            <?= form_error('bansos', '<small class ="text-danger pl-3">', '</small>'); ?>
                                                        </div>
                                                    </div>
                                                </div>

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

                                            <div class="card-footer">
                                                <a href="<?= base_url() ?>kelola_ruta_agt" class="btn btn-secondary">Kembali</a>
                                                <button type="submit" class="btn btn-primary float-right">Simpan</button>
                                            </div>
                                        </form>
                                    </div>
                                </div>

                            </div>


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

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

            </div>
        </div>

    </section>

    <!-- /.content -->

</div>