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

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


<section class="panel panel-default">
	<div class="table-responsive">
		<table class="table table-striped">
	      <thead>
	        <tr>
	          <th>#</th>
	          <th>Tahun</th>
	          <th>Bulan</th>
	          <th class="col-md-2 text-center">Action</th>
	        </tr>
	      </thead>
	      <tbody>
	      	<?php foreach($periode as $key => $periode): ?>
	        <tr>
	          <th scope="row"><?php echo e($key+1); ?></th>
	          <td><?php echo e($periode->tahun); ?></td>
	          <td><?php echo e($periode->bulan); ?></td>
			  
			<td class="text-center">
                <a data-id="13" class="btn btn-xs btn-default btn-user-edit" href="<?php echo e(route('periode.update', $periode->id)); ?>"><i class="fa fa-pencil fa-fw"></i></a>
                <?php echo Html::decode(Html::link(route('periode.delete', $periode->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 periode?', 'data-token' => csrf_token()))); ?>

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