<?php $__env->startSection('content'); ?>
    <?php /*<h1>List employee</h1>*/ ?>
 	<div class="row">
    	<div class="col-xs-12">
    		<div class="box">
    			<div class="box-header">
    				<div class="box-name">
    					<i class="fa fa-male"></i>
    					<span>List of employee</span>
    				</div>
    				<div class="box-icons">
    					<a class="collapse-link">
    						<i class="fa fa-chevron-up"></i>
    					</a>
    					<a class="expand-link">
    						<i class="fa fa-expand"></i>
    					</a>
    					<a class="close-link">
    						<i class="fa fa-times"></i>
    					</a>
    				</div>
    				<div class="no-move"></div>
    			</div>
    			<div class="box-content no-padding">
    				<table class="table table-bordered table-striped table-hover table-heading table-datatable" id="datatable-1">
    					<thead>
    						<tr>
    							<th class="col-md-1">CIN</th>
    							<th class=" col-lg-3">Fist name last name</th>
    							<th class="col-md-1">Age</th>
    							<th>State</th>
    							<th>Mobile</th>
    							<th>Email</th>
    						</tr>
    					</thead>
    					<tbody>
    					<!-- Start: list_row -->
    					<?php foreach($employees as $employee): ?>
    					<tr onclick="document.location = '<?php echo e(route('employee.show', $employee)); ?>';">
                            <td><?php echo e($employee->cin); ?></td>
                            <td><img class="img-rounded" src="<?php echo e(asset('/img/') .'/'.$employee->image); ?>" alt=""><?php echo e($employee->first_name ."   "); ?><?php echo e($employee->last_name); ?></td>
                            <td><?php echo e($employee->date_birth->age); ?></td>
                            <td><?php echo e($employee->state); ?></td>
                            <td><?php echo e($employee->mobile); ?></td>
                            <td><?php echo e($employee->email); ?></td>
                        </tr>
                        <?php endforeach; ?>
    					<!-- End: list_row -->
    					</tbody>
    					<tfoot>
    						<?php /*<tr>*/ ?>
    							<?php /*<th>Rank</th>*/ ?>
    							<?php /*<th>Name</th>*/ ?>
    							<?php /*<th>Net Worth</th>*/ ?>
    							<?php /*<th>Age</th>*/ ?>
    							<?php /*<th>Source</th>*/ ?>
    							<?php /*<th>Country of Citizenship</th>*/ ?>
    						<?php /*</tr>*/ ?>
    					</tfoot>
    				</table>
    			</div>
    		</div>
    	</div>
    </div>
 <?php $__env->stopSection(); ?>
 <script type="text/javascript">
 // Run Datables plugin and create 3 variants of settings
 function AllTables(){
 	TestTable1();
 	TestTable2();
 	TestTable3();
 	LoadSelect2Script(MakeSelect2);
 }
 function MakeSelect2(){
 	$('select').select2();
 	$('.dataTables_filter').each(function(){
 		$(this).find('label input[type=text]').attr('placeholder', 'Search');
 	});
 }
 $(document).ready(function() {
 	// Load Datatables and run plugin on tables
 	LoadDataTablesScripts(AllTables);
 	// Add Drag-n-Drop feature
 	WinMove();
 });
 </script>

<?php echo $__env->make('../shared/default', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>