<div class="row">
    <div class="col-md-3">
    </div>
    <div class="col-md-12">
        <div class="box box-primary box-solid">
            <div class="box-header with-border">
                <h3 class="box-title">Edit Document</h3>
                <!-- /.box-tools -->
            </div>

            <!-- /.box-header -->
            <div class="box-body">
                <?php
                $errors = session()->getFlashdata('errors');
                if (!empty($errors)) { ?>
                    <div class="alert alert-danger alert-dismissible">
                        <h5>Ada Kesalahan !!!</h5>
                        <ul>
                            <?php foreach ($errors as $key => $value) { ?>
                                <li><?= esc($value) ?></li>
                            <?php } ?>
                        </ul>
                    </div>
                <?php } ?>
                <?php
                echo form_open_multipart('arsip_user/insert');
                helper('text');
                $no_arsip = date('ymds') . '-' . random_string('alnum', 4);
                ?>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label>Nama</label>
                        <input name="nama_arsip" class="form-control" placeholder="Nama Document">
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label>NIK</label>
                        <input name="nama_arsip" class="form-control" placeholder="Nama Document">
                    </div>
                </div>

                <div class="col-sm-6">
                    <div class="form-group">
                        <label>Tempat Tanggal Lahir</label>
                        <input name="nama_arsip" class="form-control" placeholder="Nama Document">
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label>Agama</label>
                        <select name="id_agama" class="form-control">
                            <option value="">--Choose Agama--</option>
                            <?php foreach ($agama as $key => $value) { ?>
                                <option value="<?= $value['id_agama'] ?>"><?= $value['nama_agama'] ?></option>
                            <?php } ?>

                        </select>
                    </div>
                </div>

                <div class="col-sm-6">
                    <div class="form-group">
                        <label>Jenis Kelamin</label>
                        <select name="id_kategori" class="form-control">
                            <option value="">--Choose Kelamin--</option>
                            <?php foreach ($kategori as $key => $value) { ?>
                                <option value="<?= $value['id_kategori'] ?>"><?= $value['nama_kategori'] ?></option>
                            <?php } ?>

                        </select>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label>Status Perkawinan</label>
                        <select name="id_kategori" class="form-control">
                            <option value="">--Choose Kelamin--</option>
                            <?php foreach ($kategori as $key => $value) { ?>
                                <option value="<?= $value['id_kategori'] ?>"><?= $value['nama_kategori'] ?></option>
                            <?php } ?>

                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label>Deskripsi</label>
                    <textarea name="deskripsi" class="form-control" rows="5"></textarea>
                </div>

                <div class="col-sm-6">
                    <div class="form-group">
                        <label>Ijazah</label>
                        <input type="file" name="file_arsip" class="form-control">
                        <label class="text-danger">File Harus Format .PDF</label>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label>File Pendukung</label>
                        <input type="file" name="file_arsip" class="form-control">
                        <label class="text-danger">File Harus Format .PDF</label>
                    </div>
                </div>

                <div class="form-group">
                    <button type="submit" class="btn btn-primary">Simpan</button>
                    <a href="<?= base_url('arsip_user') ?>" class="btn btn-success">Kembali</a>
                </div>

                <?php echo form_close() ?>


            </div>
        </div>
        <!-- /.box -->
    </div>

    <div class="col-md-3">
    </div>
</div>