<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-12">
                    <div class="card card-primary">
                        <div class="card-header">
                            <h3 class="card-title" id="blk4">BLOK VIII - CATATAN</h3>
                        </div>
                        <form method="post" action="<?= base_url() ?>tambah_ruta/ubahblok8/<?= $blok1[0]->id ?>">
                            <div class="card-body">
                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="form-group">
                                            <!-- <label class="text-center" for="catatan">CATATAN</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 ?>">
                                                <textarea rows="10" cols="12" style="text-align: left;" type="text" class="form-control" name="catatan" id="catatan"><?= $blok1[0]->catatan ?>
                                            </textarea>
                                            <?php else : ?>
                                                <textarea rows="10" cols="12" style="text-align: left;" type="text" class="form-control" name="catatan" id="catatan">
                                            </textarea>
                                            <?php endif; ?>
                                            <?= form_error('catatan', '<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>
        </div><!-- /.container-fluid -->
        <div class="col-12 mb-2">
            <a href="<?= base_url() ?>tambah_ruta/blok7/<?= $blok1[0]->id ?>" class=" btn bg-navy">Kembali</a>
            <a href="<?= base_url() ?>kelola_ruta_kk" class="btn btn-success simkk next float-right">SIMPAN SEMUA</a>
        </div>
    </section>

    <!-- /.content -->
</div>
<?php
if (isset($_SESSION['informasi'])) {
    echo $_SESSION['informasi'];
    unset($_SESSION['informasi']);
}
?>
<?php
if (isset($_SESSION['error'])) {
    echo $_SESSION['error'];
    unset($_SESSION['error']);
}
?>