<?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">
        <div class="row">
          <!-- left column -->
          <div class="col-md-6">
            <!-- general form elements -->
            <div class="card card-primary">
              <div class="card-header">
                <h3 class="card-title">Laporan Harian</h3>
              </div>
              <!-- /.card-header -->
              <!-- form start -->
              <form role="form" method="post" target="blank" action="<?php echo base_url('laporan/cetak_laporan_stokopname');?>">
                <div class="card-body">
                  <div class="form-group">
                    <label for="exampleInputEmail1">Tanggal</label>
                    <input type="text" name="tanggal" id="tbDate1" class="form-control" id="exampleInputEmail1" placeholder="Enter Date">
                    <input type="hidden" name="jenis_laporan" value="harian">
                  </div>
                  <div class="form-group">
                  	<label for="exampleInputEmail1">Pilih Kantor </label>
                  	<select class="form-control" name="id_kantor" >
                  			<option value="all">Semua</option>
                  		<?php $no=1; foreach($kantor as $kantor) : ?> 
                  		<option value="<?php echo $kantor->id_kantor; ?>"><?php echo $kantor->nama_kantor; ?></option>
                  		<?php $no++; endforeach; ?>
                  	</select>
                  </div>
                   
                  
                </div>
                <!-- /.card-body -->

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

           
            <div class="card card-danger">
              <div class="card-header">
                <h3 class="card-title">Laporan Bulanan</h3>
              </div>
              <div class="card-body">
              	<form role="form" method="post" target="blank" action="<?php echo base_url('laporan/cetak_laporan_stokopname');?>">
              		<div class="card-body">
              			<div class="form-group">
              				<label for="exampleInputEmail1">Pilih Bulan</label>
              				<select name="bulan" class="form-control" >
              					<option value="01">Januari</option>
              					<option value="02">Februari</option>
              					<option value="03">Maret</option>
              					<option value="04">April</option>
              					<option value="05">Mei</option>
              					<option value="06">Juni</option>
              					<option value="07">Juli</option>
              					<option value="08">Agustus</option>
              					<option value="09">September</option>
              					<option value="10">Oktober</option>
              					<option value="11">November</option>
              					<option value="12">Desember</option>
              				</select>
              				 <input type="hidden" name="jenis_laporan" value="bulanan">
              			</div>
              			<div class="form-group">
              				<label for="exampleInputPassword1">Pilih Tahun</label>
              				<select name="tahun" class="form-control">
												<?php
												$mulai= date('Y') - 10;
												for($i = $mulai;$i<$mulai + 60;$i++){
													$sel = $i == date('Y') ? ' selected="selected"' : '';
													echo '<option value="'.$i.'"'.$sel.'>'.$i.'</option>';
												}?>
											</select>
              			</div>
              			<div class="form-group">
              				<label for="exampleInputEmail1">Pilih Kantor </label>
              				<select class="form-control" name="id_kantor" >
              						<option value="all">Semua</option>
              					<?php $no=1; foreach($kantor1 as $kantor1) : ?> 
              				 
              					<option value="<?php echo $kantor1->id_kantor; ?>"><?php echo $kantor1->nama_kantor; ?></option>
              					<?php $no++; endforeach; ?>
              				</select>
              			</div>
              		  
              		</div>
              		<!-- /.card-body -->

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

          </div>
          <!--/.col (left) -->
          <!-- right column -->
          <div class="col-md-6">
            <!-- general form elements disabled -->
            <div class="card card-warning">
              <div class="card-header">
                <h3 class="card-title">Laporan Pilihan Tanggal</h3>
              </div>
              <!-- /.card-header -->
              <div class="card-body">
                 <form role="form" method="post" target="blank" action="<?php echo base_url('laporan/cetak_laporan_stokopname');?>">
              		<div class="card-body">
              			<div class="row">
              				<script>
              					$(function () {
              					})
              				</script>
              				<div class="col-sm-6">
              					<div class="form-group">
              						<label>Date awal:</label>
              						<div class="input-group date" id="reservationdate" data-target-input="nearest">
              							<input type="text" placeholder="dari tanggal_akhir" name="tanggal_awal" class="form-control  " id="tbDate5" />
              							<div class="input-group-append" data-target="#reservationdate" data-toggle="">
              								<div class="input-group-text"><i class="fa fa-calendar"></i></div>
              							</div>
              						</div>
              					</div>
              				</div>

              				<div class="col-sm-6">
              					<div class="form-group">
              						<label>Date akhir:</label>
              						<div class="input-group date" id="reservationdate" data-target-input="nearest">
              							<input type="text" name="tanggal_akhir" class="form-control" id="tbDate6" data-target="#reservationdate" placeholder="sampai tanggal" />
              							<div class="input-group-append" data-target="#reservationdate" data-toggle="">
              								<div class="input-group-text"><i class="fa fa-calendar"></i></div>
              							</div>
              						</div>
              					</div>
              				</div>
              			</div>
              			<div class="row">
              				<div class="col-sm-12">
              					<div class="form-group">
              						<label for="exampleInputEmail1">Pilih Kantor </label>
              						<select class="form-control" name="id_kantor" >
              							<option value="all">Semua</option>
              							<?php $no=1; foreach($kantor2 as $kantor2) : ?> 
              							
              							<option value="<?php echo $kantor2->id_kantor; ?>"><?php echo $kantor2->nama_kantor; ?></option>
              							<?php $no++; endforeach; ?>
              						</select>
              						 <input type="hidden" name="jenis_laporan" value="pilihan">
              					</div>
              				</div>
              				 
              			</div>
              			
              			
              			 
              			 
              			 
              		</div>
              		<!-- /.card-body -->

              		<div class="card-footer">
              			<button type="submit" class="btn btn-primary">Cetak</button>
              		</div>
              	</form>
              </div>
              <!-- /.card-body -->
            </div>
            
            <!-- /.card -->
            
          </div>
          <!--/.col (right) -->
        </div>
        <!-- /.row -->
      </div><!-- /.container-fluid -->
    </section>
    <!-- /.content -->
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

  	 