<div class="m-b-md">
  	<a href="<?php echo e(route('absensi.create')); ?>" id="btn-user-add" class="btn btn-success btn-sm pull-right"><i class="fa fa-plus"></i> Add Absensi Karyawan</a> 
  	<h3 class="m-b-none">List Absensi Karyawan</h3>
</div>

<?php echo e(Helper::bootstrap_alert()); ?>


<section class="panel panel-default">
<?php echo Form::open(array('route' => 'absensi.list.filter')); ?>

<section class="panel panel-default">
  <div class="panel-body">

<div class="form-group">
          <label>Bulan</label>
		 <?php echo Form::selectMonth('bulan', $pbulan, array('class' => 'form-control')); ?>

        </div>
    <div class="pull-right">
      <a href="<?php echo e(route('absensi.list')); ?>" id="btn-user-add" class="btn btn-default btn-sm">Cancel</a>
      <button type="submit" class="btn btn-sm btn-primary">Filter</button>
    </div>
  </div>
</section>
<?php echo Form::close(); ?>


	<div class="table-responsive">
		<table class="table table-striped">
	      <thead>
	        <tr>
	          <th>No.</th>
	          <th>Tahun</th>
	          <th>Bulan</th>
			  <th>Karyawan</th>
	          <th>Finger</th>			  
			  <th>Form Lapangan</th>
	          <th>Tidak Hadir/Izin </th>
			  <th>Sakit</th>
			  <th>Total</th> 
			  <th>Terlambat</th>
	          <th>Istirahat Cepat</th>
			  <th>Pulang Cepat</th> 
	          <th class="col-md-2 text-center">Action</th>
	        </tr>
	      </thead>
	      <tbody>
	      	<?php foreach($absensi as $key => $absensi): ?>
	        <tr>
	          <th scope="row"><?php echo e($key+1); ?></th>
	          <td><?php echo e($absensi->tahun); ?></td>
	          <td><?php echo e($absensi->bulan); ?></td>
			  <td><?php echo e($absensi->nama); ?></td>
			  <td><?php echo e($absensi->finger); ?></td>
			  <td><?php echo e($absensi->flapangan); ?></td>
			  <td><?php echo e($absensi->absen); ?></td>
			  <td><?php echo e($absensi->suratdok); ?></td>
			  <td><?php echo e($absensi->suratdok+$absensi->finger + $absensi->flapangan+$absensi->absen); ?></td>
			  <td><?php echo e($absensi->terlambat); ?></td>
			  <td><?php echo e($absensi->makan); ?></td>
			  <td><?php echo e($absensi->pulcep); ?></td>
			<td class="text-center">
                <a data-id="13" class="btn btn-xs btn-default btn-user-edit" href="<?php echo e(route('absensi.update', $absensi->id)); ?>"><i class="fa fa-pencil fa-fw"></i></a>
               <?php echo Html::decode(Html::link(route('absensi.delete', $absensi->id), '<i class="fa fa-times fa-fw"></i>', array('class' => 'btn btn-xs btn-default btn-user-edit', 'data-method' => 'delete', 'data-confirm' => 'Are you sure want to delete this Data Absensi?', 'data-token' => csrf_token()))); ?>

	          </td>  
	        </tr>
	        <?php endforeach; ?>
	      </tbody>
	    </table>
	</div>
</section>