<div class="content-wrapper">
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1><?= $title; ?></h1>
                </div>
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a href="#"><?= $root; ?></a></li>
                        <li class="breadcrumb-item active"><?= $title; ?></li>
                    </ol>
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>
	<section class = "content">
		<?php foreach ($inventaris as $q) { ?>
			<div class="container-fluid">
        	<div class="card">
        		<?php echo $this->session->flashdata('notif') ?>
        		<div class="card-header">
        			<h2 class="text-center">Edit Data Inventaris</h2>
	        		<div class="modal-body">
					<?php echo form_open_multipart('inventaris/updatedata');?>
	                            <div class="form-group">
	                           		 <label for="exampleFormControlSelect1">Nama Inventaris</label>
	                                <input type="hidden" class="form-control" id="id_inv" name="id_inv" value="<?= $q->id_inv?>" >
	                                <input type="text" class="form-control" id="nama_inv" name="nama_inv" value="<?= $q->nama_inv?>" >
	                        	</div>
	                             <div class="form-group">
	                                    <label  id="kondisi" >Kondisi</label>
	                                   	 <input type="text" class="form-control" id="kondisi" name="kondisi" value="<?= $q->kondisi ?>">
	                            </div>
	                            <div class="form-group">
	                            	<label for="exampleFormControlSelect1">Jenis</label>
										<input type="text" class="form-control" id="jenis" name="jenis" value="<?= $q->jenis?>">
	                             </div>
	                             <div class="form-group">
	                             	<label for="exampleFormControlSelect1">Milik</label>
									 <input type="text" class="form-control" id="milik" name="milik" value="<?= $q->milik?>" >
	                            </div>
								<div class="form-group">
                            		<label for="exampleFormControlSelect1">Tambah Image</label>
                                    <input type="file"  id="image" name="image" onchange="return filename()" name="image" class="form-control image" >
									<img src="<?php echo base_url();?>files/inventaris/<?php echo $q->image;?>" class="img-thumbnail" width="30%" alt="">
                          		</div>
	                            <div class="form-group">
	                                <label for="exampleFormControlSelect1">Jumlah</label>
	                                    <input type="text" class="form-control" id="jumlah" name="jumlah" value="<?= $q->jumlah?>">
	                             </div>
	                             <div class="text-center">
	                                    <button type="reset" class="btn btn-outline-danger btn-block">Reset </button>
	                                    <button type="submit" class="btn btn-outline-primary btn-block" >Simpan Data </button>
	                            </div>
	                    	<?php echo form_close();?>
	                    </div>
                
        		</div>
        	</div>
                
		</div>
		<?php } ?>
	</section>
</div>
        