<!-- Begin Page Content -->
<div class="container-fluid mb-5">
    <div class="row">
        <div class="col-12 col-md-6">
            <div class="card">
                <div class="card-header">
                    <h4 class="text-gray-800">Form Data Penyakit</h4>
                </div>
                <div class="card-body">
                    <form enctype="multipart/form-data" method="post" action="">
                        <input type="hidden" name="id" value="<?php echo $id; ?>" />
                        <div class="form-group row">
                            <label for="" class="col-sm-3 col-form-label">Nama Penyakit</label>
                            <div class="col-sm-9">
                                <input required type="text" name="nama_penyakit" class="form-control" id="" placeholder="" value="<?php echo $fetch['nama_penyakit']; ?>">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="" class="col-sm-3 col-form-label">Keterangan</label>
                            <div class="col-sm-9">
                                <textarea class="form-control" name="det_penyakit" rows="7"><?php echo $fetch['det_penyakit']; ?></textarea>
                            </div>
                        </div>
                        <!-- <div class="form-group row">
                            <label for="" class="col-sm-3 col-form-label">Saran</label>
                            <div class="col-sm-9">
                                <textarea class="form-control" name="srn_penyakit" rows="7"><?php echo $fetch['srn_penyakit']; ?></textarea>
                            </div>
                        </div> -->
                        <div class="form-group row">
                            <label for="" class="col-sm-3 col-form-label">Gambar</label>
                            <div class="col-sm-9">
                                <?php if ($id) { ?>
                                    <a target="_blank" href="<?php echo base_url(); ?>aset/penyakit/<?php echo $fetch['gambar']; ?>"><img src="<?php echo base_url(); ?>aset/penyakit/<?php echo $fetch['gambar']; ?>" class="w-100 mb-3" /></a>
                                <?php } ?>


                                <input type="file" id="file" name="file" accept="image/*" required>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label for="" class="col-sm-3 col-form-label"></label>
                            <div class="col-sm-9">
                                <button class="btn btn-md btn-warning">Simpan</button>
                                <a href="<?php echo base_url(); ?>dashboard/daftar_penyakit" class="btn btn-md btn-danger">Batal</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- /.container-fluid -->