
<?php \Laravel\Section::start('content'); ?>
	<div class="container">
		<div class="page-header">
			<h1>Frais de port supplémentaires</h1>
		</div>
		<?php echo  BHelpers::notification() ; ?>
		<?php if($livraisons): ?>
		<table class="table table-striped table-hover datatable">
			<thead>
				<tr>
					<th>#</th>
					<th>Nombre d'articles</th>
					<th>Prix</th>
					<th><?php echo __('admin.date_creation'); ?></th>
					<th><?php echo __('admin.derniere_modification'); ?></th>
					<th style="text-align:right;"><?php echo __('admin.action'); ?></th>
				</tr>
			</thead>
			<tbody>
				<?php foreach($livraisons as $p): ?>
				<tr>
					<td><?php echo  $p->id ; ?></td>
					<td><span class="badge badge-inverse"><?php echo  $p->nb_articles ; ?></span></td>
					<td><span class="label label-warning"><?php echo  $p->prix ; ?> &euro;</span></td>
					<td><?php echo  $p->created_at ; ?></td>
					<td><?php echo  $p->updated_at ; ?></td>
					<td style="padding: 4px 8px; text-align:right;">
						<a class="btn btn-small" href="<?php echo  URL::to_route('edit_livraison', array($p->id)) ; ?>"><i class="icon-pencil"></i> <?php echo __('admin.modifier'); ?></a>
					</td>
				</tr>
				<?php endforeach; ?>
			</tbody>
		</table>
		<?php else: ?>
			<em>Aucuns frais de livraison appliqués.</em>
		<?php endif; ?>
	</div>
<?php \Laravel\Section::stop(); ?>
<?php echo view('backend::template_default')->with(get_defined_vars())->render(); ?>