@extends('layout')
@section('title','Liste de tous les employés ')
@section('description','Liste de tous les employés')
@section('content')
			<br/>
          <div class="section-body">
		  <br/>
			<div class="row">
              <div class="col-12">
                <div class="card">
                  <div class="card-header">
                    <h4>Liste de tous les employés</h4>
                  </div>
                  <div class="card-body">
                    <div class="table-responsive">
                      <table class="table table-striped" id="table-1">
                        <thead>
                          <tr>
                            <th class="text-center"> N° </th>
                            <th class="text-center">Nom</th>
                            <th class="text-center">Prénoms</th>
							<th class="text-center">Téléphone</th>
                            <th class="text-center">Type d'employé</th>
                            <th class="text-center">Rémunération</th>
                            <th>Action</th>
                          </tr>
                        </thead>
                        <tbody>
						@foreach($employe as $employes)
                          <tr>
							<td style="text-align:center;">{{$employes->matricule}}</td>
							<td style="text-align:center;">{{$employes->nom}}</td>
							<td style="text-align:center;">{{$employes->prenoms}}</td>
							<td style="text-align:center;">{{$employes->telephone}}</td>
							<td style="text-align:center;">{{$employes->typeemploye}}</td>
							<td style="text-align:center;">{{number_format($employes->salaire_base, 0, ' ', ' ')}}</td>
							<td style="text-align:center;">
								<a type="button" href="{{route('absence_employe',['id'=>$employes->id])}}" class="btn btn-icon btn-warning"><i class="fas fa-plus" aria-hidden="true"></i> Abs.</a>
								@if ($employes->typeemploye == "Journalier")
								<a type="button" href="{{route('nouveau-salaire',['id'=>$employes->id])}}" class="btn btn-icon btn-info"><i class="fas fa-plus" aria-hidden="true"></i> Sal.</a>
								@else
								<a type="button" href="{{route('nouveau-salaire-permanent',['id'=>$employes->id])}}" class="btn btn-icon btn-info"><i class="fas fa-plus" aria-hidden="true"></i> Sal.</a>
								@endif 
								<a type="button" href="{{route('avance_employe',['id'=>$employes->id])}}" class="btn btn-icon btn-primary"><i class="fas fa-plus" aria-hidden="true"></i> Avance</a>
								<!--<a type="button" href="{{route('liste-des-salaires',['id'=>$employes->id])}}" class="btn btn-icon btn-success"><i class="fas fa-money" aria-hidden="true"></i> 
								Liste des salaire</a>--> 
							</td>
                          </tr>
						  @endforeach
                        </tbody>
                      </table>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
		<div class="modal fade bd-example-modal-sm" id="Validermodal">
			<div class="modal-dialog modal-sm">
				<div class="modal-content">
					<div class="modal-body">
						<p>Voulez-vous valider la facture ?</p>
					</div>
					<div class="modal-footer" style="background-color:#ffffff" id="valider">

					</div>
				</div>
			</div>
		</div>

        <div class="modal fade bd-example-modal-sm" id="Annulermodal">
			<div class="modal-dialog modal-sm">
				<div class="modal-content">
					<div class="modal-body">
						<p>Etes-vous sûr d'annuler cette facture ?</p>
					</div>
					<div class="modal-footer" style="background-color:#ffffff" id="annuler">

					</div>
				</div>
			</div>
		</div>
		<div class="modal fade bd-example-modal-sm" id="Supprimermodal">
			<div class="modal-dialog modal-sm">
				<div class="modal-content">
					<div class="modal-body">
						<p>Etes-vous sûr de supprimer cette facture ?</p>
					</div>
					<div class="modal-footer" style="background-color:#ffffff" id="supprimer">

					</div>
				</div>
			</div>
		</div>

@endsection