<!-- Begin Page Content -->
<div class="container-fluid mb-5">
    <div class="row">
        <div class="col-12 col-md-12">
            <div class="card">
                <div class="card-header">
                    <h4 class="text-gray-800">Form Data Perawatan</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 readonly="readonly" 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">Cara Perawatan</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">Cara Pencegahan</label>
                            <div class="col-sm-9">
                                <textarea class="form-control" name="srn_pencegahan" id="editor" rows="7"><?php echo $fetch['srn_pencegahan']; ?></textarea>
                            </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_perawatan" class="btn btn-md btn-danger">Batal</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- /.container-fluid -->

<script src="https://cdn.ckeditor.com/ckeditor5/36.0.1/classic/ckeditor.js"></script>
<script>
    ClassicEditor
        .create(document.querySelector('#editor'))
        .catch(error => {
            console.error(error);
        });
</script>