<?php foreach($kontak as $kontak) :   endforeach; ?>
<?php foreach($admin_login as $user) :   endforeach; ?> 
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0 text-dark"><?php echo $title1; ?> </h1>
          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="#">Home</a></li>
              <li class="breadcrumb-item active"><?php echo $title1; ?></li>
            </ol>
          </div><!-- /.col -->
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->
      
           
    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
         <form role="form" action="<?php echo base_url('kontak/code_ubah'); ?>" method="POST" enctype="multipart/form-data">
         <div class="row">
          <!-- left column -->
          <div class="col-md-8">
            <!-- general form elements -->
            <div class="card card-primary">
              <div class="card-header">
                <h3 class="card-title">Profil Perusahaan</h3>
              </div>
              <!-- /.card-header -->
              <!-- form start -->
             
                <div class="card-body">
                  <div class="form-group">
                    <label for="exampleInputEmail1">Nama Perusahaan <span style="color: red">*</span></label>
                    <input type="hidden" name="id" value="<?php  echo  $kontak->id; ?>">
                    <input type="text" value="<?php  echo  $kontak->nama_toko; ?>" name="nama_toko" class="form-control" id="fileinput" placeholder="Nama Perusahaan" >
                  </div>
                  <div class="form-group">
                    <label for="exampleInputEmail1">Alamat Perusahaan</label>
                    <textarea class="form-control"  name="alamat" rows="5" placeholder="Alamat Perusahaan"><?php  echo  $kontak->alamat; ?></textarea>
                  </div>
                   <div class="form-group">
                    <label for="exampleInputEmail1">Email Perusahaan <span style="color: red">*</span></label>
                    <input type="text" value="<?php  echo  $kontak->email; ?>" name="email"  class="form-control" id="fileinput" placeholder="Email Perusahaan" >
                  </div>
                   <div class="form-group">
                    <label for="exampleInputEmail1">Nomor Wa Perusahaan <span style="color: red">*</span></label>
                    <input type="text" value="<?php  echo  $kontak->nomor; ?>" name="nomor"  class="form-control" id="fileinput" placeholder="Nomor Perusahaan" >
                  </div>
                  
                   <div class="form-group">
                    <label for="exampleInputEmail1">Propinsi</label> 
                    <input type="text" value="<?php  echo  $kontak->propinsi; ?>"name="propinsi"   class="form-control" id="fileinput" placeholder="Nama Perusahaan">
                  </div>
                  <div class="form-group">
                    <label for="exampleInputEmail1">Kabupaten/Kota</label>
                    <input type="text"  value="<?php  echo  $kontak->kab_kota; ?>" name="kab_kota"  class="form-control" id="fileinput" placeholder="Nama Perusahaan">
                  </div>
                  <div class="form-group">
                    <label for="exampleInputEmail1">Website</label>
                    <input type="text" value="<?php  echo  $kontak->website; ?>" name="website" class="form-control" id="fileinput" placeholder="Nama Perusahaan">
                  </div>
                  <div class="form-group">
                    <label for="exampleInputEmail1">Kode Maps</label>
                    <textarea class="form-control"   name="maps" rows="5" placeholder="Maps Code"><?php  echo  $kontak->maps; ?></textarea>
                  </div>
                  <div class="form-group">
                    <label for="exampleInputEmail1">Pajak % <span style="color: red">*</span></label>
                    <input type="number" value="<?php  echo  $kontak->pajak; ?>" name="pajak"   class="form-control" id="fileinput" placeholder="Nominal Pajak" >
                  </div>
                 <!--  <div class="form-group">
                    <label for="exampleInputEmail1">Diskon Point <span style="color: red">*</span></label> -->
                    <input type="hidden" value="<?php  echo  $kontak->diskon; ?>" name="diskon"   class="form-control" id="fileinput" placeholder="Nominal Diskon" >
               <!--    </div>
                  <div class="form-group">
                    <label for="exampleInputEmail1">Minimal Diskon <span style="color: red">*</span></label> -->
                    <input type="hidden" value="<?php  echo  $kontak->min_diskon; ?>" name="min_diskon"   class="form-control" id="fileinput" placeholder="Nominal min_diskon" >
                 <!--  </div> -->

                  <div class="form-group">
                    <label for="exampleInputEmail1">Kasir Password</label>
                    <input type="password" value="<?php  echo  $kontak->password_kasir; ?>" name="password_kasir" class="form-control" id="fileinput" placeholder="password" >
                  </div>

                  <div class="form-group">
                    <label for="exampleInputEmail1">Logo Struk</label>
                    <select class="form-control" name="tampil_logo_struk" >
                      <option value="<?php  echo  $kontak->tampil_logo_struk; ?>"><?php  echo  $kontak->tampil_logo_struk; ?></option>
                        <option value="tampilkan">tampilkan</option>
                        <option value="tidak tampilkan">tidak tampilkan</option>
                    </select>
                  </div>
                  <div class="form-group">
                    <label for="exampleInputEmail1">Edit Harga Kasir Struk</label>
                    <select class="form-control" name="edit_harga" >
                       <option value="<?php  echo  $kontak->edit_harga; ?>"><?php  echo  $kontak->edit_harga; ?></option>
                        <option value="ya">ya</option>
                        <option value="tidak">tidak</option>
                    </select>
                  </div>
                   <div class="form-group">
                    <label for="exampleInputEmail1">Auto Print </label>
                    <select class="form-control" name="auto_print" >
                        <option value="<?php  echo  $kontak->auto_print; ?>"><?php  echo  $kontak->auto_print; ?></option>
                        <option value="iya">iya</option>
                        <option value="tidak">tidak</option>
                    </select>
                  </div>

                  
                  
                </div>
                <!-- /.card-body -->

                <div class="card-footer">
                  <button type="submit" class="btn btn-primary">Simpan</button>
                </div>
              
            </div>
            <!-- /.card -->

           
             

          </div>
          
          <!-- right column -->
          <div class="col-md-4">
            <!-- general form elements disabled -->
            <div class="card card-warning">
              <div class="card-header">
                <h3 class="card-title">Logo</h3>
              </div>
              <!-- /.card-header -->
              <div class="card-body">
               <img src="<?php echo base_url();?>images/kontak/<?php  echo $kontak->logo;   ?>" alt="AdminLTE Logo" class="brand-image img-circle elevation-2" width="200px" style="opacity: .8">
               <hr>
                  <!-- text input -->
                  <div class="form-group">
                    <label for="exampleInputFile">File input</label>
                    <div class="input-group">
                      <div class="custom-file">
                        <input type="file" class="custom-file-input" name="logo" id="exampleInputFile">
                        <label class="custom-file-label" for="exampleInputFile">Choose file</label>
                      </div>
                     
                    </div>
                  </div>
               
                  
                
              </div>
              <!-- /.card-body -->
            </div>
            <!-- /.card -->
            
          </div>
          
          <!--/.col (right) -->
        </div>
        </form>
      </div><!-- /.container-fluid -->
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
  