<div class="container">
   <div class="row">
      <div class="col-lg-8">
         <div class="card shadow">
            <div class="card-header">
               Form Ubah Data
            </div>
            <div class="card-body">
               <form action="<?= base_url('admin/data_barang/simpanedit'); ?>" method="POST" enctype="multipart/form-data">
               <input type="hidden" name="id_barang" value="<?= $barang['id_area']; ?>">
               <div class="form-group">
                  <label>Nama Barang</label>
                  <input type="text" class="form-control" name="nama_blok" value="<?= $barang['blok']; ?>">
               </div>
               
               <div class="form-group">
                  <label>Harga</label>
                  <input type="text" class="form-control" name="harga" value="<?= $barang['harga']; ?>">
               </div>
              <div class="form-group">
                  <label>Mapping</label>
                  <input type="text" class="form-control" name="latlng" value="<?= $barang['latlng']; ?>">
               </div>
               <div class="form-group">
                  <label>Keterangan</label>
                  <input type="text" class="form-control" name="ket" value="<?= $barang['keterangan']; ?>">
               </div>
               <div class="form-group">
                  <label>Gambar</label>
                  <input type="file" class="form-control" name="gambar" >
               </div>

               <div class="mt-4">
                  <a href="<?= base_url('data_barang'); ?>" class="btn btn-sm btn-danger shadow-sm"><i class="fas fa-backspace"></i> Kembali</a>
                  <button type="submit" class="btn btn-sm btn-primary">Ubah</button>
               </div>
               </form>
            </div>
         </div>

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