
<?php \Laravel\Section::start('content'); ?>
	<div class="container">
		<div class="page-header">
			<h1><?php echo __('admin.clients'); ?></h1>
		</div>
		<div style="margin-bottom: 15px;">
			<a class="btn" href="<?php echo  URL::to_route('new_customer') ; ?>"><i class="icon-plus"></i> <?php echo __('admin.ajouter_utilisateur'); ?></a>
		</div>
		<?php echo  BHelpers::notification() ; ?>
		<table class="table table-striped table-hover datatablecustomers">
			<thead>
				<tr>
					<th>#</th>
					<th>Type</th>
					<th><?php echo __('admin.nom'); ?></th>
					<th><?php echo __('admin.prenom'); ?></th>
					<th><?php echo __('admin.email'); ?></th>
					<th style="text-align:right"><?php echo __('admin.action'); ?></th>
				</tr>
			</thead>
			<tbody></tbody>
		</table>
	</div>
	<script type="text/javascript">
	function delete_entry(id)
	{
		if(confirm("<?php echo __('admin.etes_vous_sur'); ?>"))
			$('#form_'+id).submit();
		else
			return false;
	}
	$(document).ready(function() {
		$('.datatablecustomers').dataTable( {
	        "bProcessing": true,
	        "bServerSide": true,
	        "iDisplayLength": 25,
	        "sAjaxSource": "<?php echo  URL::to_route('ajaxcustomers') ; ?>",
	        "oLanguage": {
		      "sSearch": "<?php echo __('admin.recherche'); ?> : ",
		      "sLengthMenu": "<?php echo __('admin.affichage_de'); ?> _MENU_ <?php echo __('admin.resultats_m'); ?>"
		    },
	        "aaSorting": [ [0,'asc'], [1,'asc'] ]
	    });
	    
	    $(".dataTables_info, .dataTables_paginate").css({'margin-top':'20px','margin-bottom':'20px'});
	});
	</script>
<?php \Laravel\Section::stop(); ?>
<?php echo view('backend::template_default')->with(get_defined_vars())->render(); ?>