<?php $__env->startSection('content'); ?>

    <div class="row">
        <div id="breadcrumb" class="col-xs-12">
           <a href="#" class="show-sidebar">
            <i class="fa fa-bars"></i>
           </a>
           <ol class="breadcrumb pull-left">
                <li><a href="<?php echo e(route('employee.index')); ?>">Employees</a></li>
            </ol>
        </div>
    </div>


     	<div class="form-group">
     	<p>
                    <a href="<?php echo e(route('employee.create')); ?>" type="button" class="btn btn-default">
                      <span><i class="fa fa-plus"></i></span>
                      Create
                    </a>
                </p>
     	</div>


 	<div class="row">
    	<div class="col-xs-12">
    		<div class="box">
    			<div class="box-header">
    				<div class="box-name">
    					<i class="fa fa-users"></i>
    					<span>List of employees</span>
    				</div>
    			</div>
    			<div class="box-content no-padding">
    				<table class="td_link 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-circle" src="<?php echo e(asset('/img/profiles') .'/'.$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>
    						<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>
    					</tfoot>
    				</table>
    			</div>
    		</div>
    	</div>
    </div>
 <?php $__env->stopSection(); ?>
<?php echo $__env->make('../shared/default', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>