<div class="row">
<div class="col-md-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">Liste des ecriture plannings</h3>
<div class="box-tools">
<?php if(in_array($add, $access["Planning"]->actions)){ ?>
<a href="<?php echo site_url('planning/detail'); ?>" class="btn btn-success btn-sm"><i class="fa fa-plus"></i> Ajouter</a>
<?php } ?>
</div>
</div>
<div class="box-body">
<table class="table table-striped" id="dataplanning">
<thead>
<tr>
<th>Planning</th>
<th>Date Debut</th>
<th>Date fin</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<?php foreach($planning as $p){ ?>
<tr>
<td><?php echo $p['libelle']; ?></td>
<td><?php echo $p['datedebut']; ?></td>
<td><?php echo $p['datefin']; ?></td>
<td>
<?php if(in_array($delete, $access["Planning"]->actions)){ ?>
<a href="<?php echo site_url('planning/removeecriture/'.$p['idplanning']); ?>" class="btn btn-danger btn-xs"><span class="fa fa-trash"></span> Supprimer</a>
<?php } ?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
<div class="pull-right">
<?php echo $this->pagination->create_links(); ?>
</div>
</div>
</div>
</div>
</div>