<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">
                <div class="col-6">
                    <div class="card card-primary">
                        <div class="card-header">
                            <h3 class="card-title" id="blk4">BLOK IV - PENDAPATAN KELUARGA</h3>
                        </div>
                        <form method="post" action="<?= base_url() ?>tambah_ruta/blok4/<?= $blok1[0]->id ?>">
                            <div class="card-body">
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label for="pekerjaan">Pekerjaan yang Menghasilkan Pendapatan Terbesar</label>
                                            <?php if (isset($blok1)) : ?>
                                                <input type="hidden" id="id" name="id" class="form-control col-md-7 col-xs-12" value="<?= $blok1[0]->id ?>">

                                                <input type="text" class="form-control" name="pekerjaan" id="pekerjaan" placeholder="Kode Lapangan Usaha" maxlength="2" onkeypress="return event.charCode >= 48 && event.charCode <=51" value="<?= $blok1[0]->pekerjaan ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="pekerjaan" id="pekerjaan" placeholder="Kode Lapangan Usaha" maxlength="2" onkeypress="return event.charCode >= 48 && event.charCode <=51">
                                            <?php endif; ?>
                                            <?= form_error('pekerjaan', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="form-group">
                                            <label for="pendapatan">Pendapatan Seluruh Anggota Keluarga Per Bulan</label>
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="pendapatan" id="pendapatan" placeholder="Pendapatan Keseluruhan anggota" maxlength="13" onkeypress="return event.charCode >= 48 && event.charCode <=58" value="<?= $blok1[0]->pendapatan ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="pendapatan" id="pendapatan" placeholder="Pendapatan Keseluruhan anggota" maxlength="13" onkeypress="return event.charCode >= 48 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('pendapatan', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>

                                    </div>

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

                            <div class="card-footer">
                                <?php if (isset($blok1)) : ?>
                                    <button type="submit" class="btn btn-primary">Simpan</button>
                                <?php else : ?>
                                    <button style="display: none;" type="submit" class="btn btn-primary">Simpan</button>
                                <?php endif; ?>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="col-6">
                    <div class="card card-primary">
                        <div class="card-header">
                            <h3 class="card-title">BLOK V - KEPEMILIKAN ASET DAN KEIKUTSERTAAN PROGRAM</h3>
                        </div>
                        <form method="post" action="<?= base_url() ?>tambah_ruta/blok5/<?= $blok1[0]->id ?>">
                            <div class="card-body">
                                <div class="row">
                                    <div class="col-md-12">
                                        <label for="asal">1.Keluarga Memiliki Sendiri Asal Bergerak Sebgai Berikut :</label>
                                    </div>
                                    <div class="col-md-5">
                                        <label for="tabung">a. Tabung gas 5,5 kg atau lebih</label>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="hidden" id="id" name="id" class="form-control col-md-7 col-xs-12" value="<?= $blok1[0]->id ?>">
                                                <input type="hidden" id="nokk" name="nokk" class="form-control col-md-7 col-xs-12" value="<?= $blok1[0]->nokk ?>">
                                                <input type="text" class="form-control" name="tabung" id="tabung" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58" value="<?= $blok1[0]->tabung ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="tabung" id="tabung" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('tabung', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-5">
                                        <label for="komp">h. Komputer</label>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="komp" id="komp" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58" value="<?= $blok1[0]->komp ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="komp" id="komp" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('komp', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-5">
                                        <label for="lemari">b. Lemari/Kulkas</label>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="lemari" id="lemari" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58" value="<?= $blok1[0]->lemari ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="lemari" id="lemari" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('lemari', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-5">
                                        <label for="sepeda">i. Sepeda</label>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="sepeda" id="sepeda" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58" value="<?= $blok1[0]->sepeda ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="sepeda" id="sepeda" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('sepeda', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-5">
                                        <label for="ac">c. Ac</label>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="ac" id="ac" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58" value="<?= $blok1[0]->ac ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="ac" id="ac" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58">
                                            <?php endif; ?>

                                            <?= form_error('ac', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-5">
                                        <label for="spdmtr">j. Sepeda Motor</label>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="spdmtr" id="spdmtr" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58" value="<?= $blok1[0]->spdmtr ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="spdmtr" id="spdmtr" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('spdmtr', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-5">
                                        <label for="pmnsair">d. Pemanas Air</label>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="pmnsair" id="pmnsair" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58" value="<?= $blok1[0]->pmnsair ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="pmnsair" id="pmnsair" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('pmnsair', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-5">
                                        <label for="mbl">k. Mobil</label>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="mbl" id="mbl" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58" value="<?= $blok1[0]->mbl ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="mbl" id="mbl" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('mbl', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-5">
                                        <label for="tlpnrmh">e. Telpon Rumah</label>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="tlpnrmh" id="tlpnrmh" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58" value="<?= $blok1[0]->tlpnrmh ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="tlpnrmh" id="tlpnrmh" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('tlpnrmh', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-5">
                                        <label for="perahu">l. Perahu</label>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="perahu" id="perahu" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58" value="<?= $blok1[0]->perahu ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="perahu" id="perahu" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('perahu', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-5">
                                        <label for="telv">f. Televisi</label>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="telv" id="telv" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58" value="<?= $blok1[0]->telv ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="telv" id="telv" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('telv', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-5">
                                        <label for="mtrtempl">m. Motor Tempel</label>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="mtrtempl" id="mtrtempl" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58" value="<?= $blok1[0]->mtrtempl ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="mtrtempl" id="mtrtempl" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('mtrtempl', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-5">
                                        <label for="emas">g. Emas/Perhiasan & Tabungan</label>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="emas" id="emas" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58" value="<?= $blok1[0]->emas ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="emas" id="emas" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('emas', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-5">
                                        <label for="prhmtr">n. Perahu Motor</label>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="prhmtr" id="prhmtr" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58" value="<?= $blok1[0]->prhmtr ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="prhmtr" id="prhmtr" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('prhmtr', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div style="visibility: hidden;" class="col-md-5 ">
                                        <label for="pekerjaan">b. Lemari/Kulkas</label>
                                    </div>
                                    <div style="visibility: hidden;" class="col-md-1 hidden">
                                        <div class="form-group">

                                        </div>
                                    </div>
                                    <div class="col-md-5">
                                        <label for="kapal">o. Kapal</label>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="kapal" id="kapal" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58" value="<?= $blok1[0]->kapal ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="kapal" id="kapal" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('kapal', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-10 mt-2">
                                        <label for="nohp">2.a.Jumlah Nomor HP aktif yang dimiliki oleh seluruh anggota keluarga</label>

                                    </div>
                                    <div class="col-md-2 mt-2">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="nohp" id="nohp" maxlength="1" onkeypress="return event.charCode >= 48 && event.charCode <=58" value="<?= $blok1[0]->nohp ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="nohp" id="nohp" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('nohp', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-10">
                                        <label for="tv">2.b.Jumlah TV layar datar minimal 30 inch yang dimiliki keluarga</label>

                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="tv" id="tv" maxlength="1" onkeypress="return event.charCode >= 48 && event.charCode <=58" value="<?= $blok1[0]->tv ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="tv" id="tv" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('pekerjaan', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-12 mt-1">
                                        <label for="pekerjaan">3.Keluarga yang memilik aset tidak bergerak sebagai berikut :</label>
                                    </div>
                                    <div class="col-md-3">
                                        <label for="lhn">a. Lahan</label>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="lhn" id="lhn" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=50" value="<?= $blok1[0]->lhn ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="lhn" id="lhn" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=50">
                                            <?php endif; ?>
                                            <?= form_error('lhn', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>

                                    <div class="col-md-2 bh">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" placeholder="buah" name="buah" id="buah" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58" value="<?= $blok1[0]->buah ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" placeholder="buah" name="buah" id="buah" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('buah', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>

                                    <div class="col-md-4">
                                        <label for="pekerjaan">b. Rumah di tempat lain</label>
                                    </div>
                                    <div class="col-md-1">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="rmhtmpt" id="rmhtmpt" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58" value="<?= $blok1[0]->rmhtmpt ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="rmhtmpt" id="rmhtmpt" maxlength="1" onkeypress="return event.charCode >= 49 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('rmhtmpt', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-12 mt-2">
                                        <label for="pekerjaan">4. Jumlah Ternak yang dimiliki (ekor) :</label>
                                    </div>
                                    <div class="col-md-4">
                                        <label for="sapi">a. Sapi</label>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="sapi" id="sapi" maxlength="4" onkeypress="return event.charCode >= 48 && event.charCode <=58" value="<?= $blok1[0]->sapi ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="sapi" id="sapi" maxlength="4" onkeypress="return event.charCode >= 48 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('sapi', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-4">
                                        <label for="babi">d. Babi</label>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="babi" id="babi" maxlength="4" onkeypress="return event.charCode >= 48 && event.charCode <=58" value="<?= $blok1[0]->babi ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="babi" id="babi" maxlength="4" onkeypress="return event.charCode >= 48 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('babi', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-4">
                                        <label for="kerbau">b. Kerbau</label>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="kerbau" id="kerbau" maxlength="4" onkeypress="return event.charCode >= 48 && event.charCode <=58" value="<?= $blok1[0]->kerbau ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="kerbau" id="kerbau" maxlength="4" onkeypress="return event.charCode >= 48 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('kerbau', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-4">
                                        <label for="kuda">c. Kuda</label>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="kuda" id="kuda" maxlength="4" onkeypress="return event.charCode >= 48 && event.charCode <=58" value="<?= $blok1[0]->kuda ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="kuda" id="kuda" maxlength="4" onkeypress="return event.charCode >= 48 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('kuda', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>
                                    <div class="col-md-4">
                                        <label for="kambing">e. Kambing/Domba</label>
                                    </div>
                                    <div class="col-md-2">
                                        <div class="form-group">
                                            <?php if (isset($blok1)) : ?>
                                                <input type="text" class="form-control" name="kambing" id="kambing" maxlength="4" onkeypress="return event.charCode >= 48 && event.charCode <=58" value="<?= $blok1[0]->kambing ?>">
                                            <?php else : ?>
                                                <input disabled type="text" class="form-control" name="kambing" id="kambing" maxlength="4" onkeypress="return event.charCode >= 48 && event.charCode <=58">
                                            <?php endif; ?>
                                            <?= form_error('kambing', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>
                                    </div>

                                </div>

                                <!-- <div class="col-md-6">
                                        <div class="form-group">
                                            <label for="pendapatan">Pendapatan Seluruh Anggota Keluarga Per Bulan</label>
                                            <input type="text" class="form-control" name="pendapatan" id="pendapatan" placeholder="Pendapatan Keseluruhan anggota" maxlength="13" onkeypress="return event.charCode >= 48 && event.charCode <=58">
                                            <?= form_error('pendapatan', '<small class ="text-danger pl-3">', '</small>'); ?>
                                        </div>

                                    </div> -->

                            </div>


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

                            <div class="card-footer">
                                <?php if (isset($blok1)) : ?>
                                    <button type="submit" class="btn btn-primary">Simpan</button>
                                <?php else : ?>
                                    <button style="display: none;" type="submit" class="btn btn-primary">Simpan</button>
                                <?php endif; ?>
                            </div>
                        </form>
                    </div>
                </div>

            </div>
            <div class="row">
                <div class="col-12 mb-2">
                    <a href="<?= base_url() ?>tambah_ruta/blok123/<?= $blok1[0]->id ?>"" class=" btn bg-navy">Kembali</a>
                    <?php if ($blok1[0]->lhn == 2) : ?>
                        <a href="<?= base_url() ?>tambah_ruta/blok7/<?= $blok1[0]->id ?>" class="btn btn-success next float-right">Selanjutnya</a>
                    <?php else : ?>
                        <a href="<?= base_url() ?>tambah_ruta/blok6/<?= $blok1[0]->id ?>" class="btn btn-success next float-right">Selanjutnya</a>
                    <?php endif; ?>
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>

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