<div class="content-wrapper">
  <!-- Content Header (Page header) -->
  <div class="content-header">
    <div class="container-fluid">
      <?= $this->session->flashdata('msg') ?>
      <div class="row mb-2">
        <div class="col-sm-6">
          <h1 class="m-0"> Detail Balita</h1>
        </div><!-- /.col -->
        <div class="col-sm-6">
          <ol class="breadcrumb float-sm-right">
            <li class="breadcrumb-item"><a href="<?=base_url('dashboard')?>">Beranda</a></li>
            <li class="breadcrumb-item"><a href="<?=base_url('balita')?>">Balita</a></li>
            <li class="breadcrumb-item active">Detail Balita</li>
          </ol>
        </div><!-- /.col -->
      </div><!-- /.row -->
    </div><!-- /.container-fluid -->
  </div>
  <!-- /.content-header -->

  <!-- Main content -->
  <div class="content">
    <div class="container-fluid">

      <div class="card">
        <!-- /.card-header -->
        <div class="card-body">
          <div class="row">
            <div class="col-md-6">
              <div class="form-group">
                <label for="nama">Nama</label>
                <input type="text" class="form-control" id="nama" value="<?=$data_balita->nama_balita?>" readonly>
              </div>
              <div class="form-group">
                <label for="jenisKelamin">Jenis Kelamin</label>
                <input type="text" class="form-control" id="jenisKelamin" value="<?=$data_balita->jk?>" readonly>
              </div>
              <div class="form-group">
                <label for="umur">Umur</label>
                <input type="text" class="form-control" id="umur" value="<?=$data_balita->umur?> Bulan" readonly>
              </div>
              <div class="form-group">
                <label for="namaOrangtua">Nama Orangtua</label>
                <input type="text" class="form-control" id="namaOrangtua" value="<?=$data_balita->nama_ortu?>" readonly>
              </div>
            </div>

            <div class="col-md-6">
              <div class="form-group">
                <label for="beratBadan">Berat Badan (kg)</label>
                <input type="text" class="form-control" id="beratBadan" value="<?=$data_balita->berat_badan?> kg"
                  readonly>
              </div>
              <div class="form-group">
                <label for="tinggiBadan">Tinggi Badan (cm)</label>
                <input type="text" class="form-control" id="tinggiBadan" value="<?=$data_balita->tinggi_badan?> cm"
                  readonly>
              </div>
              <div class="form-group">
                <label for="statusGizi">Status Gizi</label>
                <input type="text" class="form-control" id="statusGizi" value="<?php
                if ($data_balita->status_gizi == 'gizi_buruk') {
                    echo 'Gizi Buruk';
                } elseif ($data_balita->status_gizi == 'gizi_kurang') {
                    echo 'Gizi Kurang';
                } elseif ($data_balita->status_gizi == 'gizi_baik') {
                    echo 'Gizi Baik';
                } elseif ($data_balita->status_gizi == 'gizi_berisiko') {
                    echo 'Berisiko Gizi Lebih';
                } elseif ($data_balita->status_gizi == 'gizi_lebih') {
                    echo 'Gizi Lebih';
                } elseif ($data_balita->status_gizi == 'obesitas') {
                    echo 'Obesitas';
                } else {
                    echo '';
                }
                ?>" readonly>
              </div>

              <div class="text-left">
                <!-- <form action="<?= base_url('balita/proseshitunggizi')?>" method="Post">
                                    <input type="hidden" class="form-control" value="<?=$data_balita->id_balita ?>">

                                    <input type="hidden" class="form-control" value="<?= $data_balita->umur ?>">
                                    <input type="hidden" class="form-control" value="<?= $data_balita->tinggi_badan ?>">

                                    <input type="submit" class="btn bg-blue text-white btn-block"
                                        value="Hitung Status Gizi">
                                </form>
                                <br> -->
                <a class="btn bg-dark text-white" href="<?= base_url('balita')?>">Kembali</a>
              </div>
            </div>
          </div>

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

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