
<ul class="nav nav-tabs" id="myTab" role="tablist">
    <li class="nav-item">
        <a class="nav-link <?php echo ($onglet_actif=='nom')?'active show':''; ?>" href="#nom" data-toggle="tab">Nom - Statut</a></li>
    <li class="nav-item">
        <a class="nav-link <?php echo ($onglet_actif=='adresse')?'active show':''; ?>" href="#adresse" data-toggle="tab">Contact</a></li>
    <?php if($mode!="create"): ?>
        <li class="nav-item">
            <a class="nav-link <?php echo ($onglet_actif=='employes')?'active show':''; ?>" href="#employes" data-toggle="tab">Employes</a></li>
    <?php endif; ?>
        <li class="nav-item">
            <a class="nav-link <?php echo ($onglet_actif=='banque')?'active show':''; ?>" href="#banque" data-toggle="tab">Banque</a></li>
        <li class="nav-item">
            <a class="nav-link <?php echo ($onglet_actif=='cotisations')?'active show':''; ?>" href="#cotisations" data-toggle="tab">Cotisations</a></li>
    <?php if($mode!="create"): ?>
        <li class="nav-item">
            <a class="nav-link <?php echo ($onglet_actif=='controles')?'active show':''; ?>" href="#controles" data-toggle="tab">Contrôles</a></li>
        <li class="nav-item">
            <a class="nav-link <?php echo ($onglet_actif=='compta')?'active show':''; ?>" href="#compta" data-toggle="tab">Comptabilité</a></li>
    <?php endif; ?>
</ul>

<div class="tab-content p-3">
    <!-- ------------------------------------- ONGLET NOM ------------------------------- -->
    <div class="tab-pane fade <?php echo ($onglet_actif=='nom')?'active show':''; ?>" id="nom" role="tabpanel" aria-labelledby="nom-tab">
        <?php echo $__env->make("tiers.employeurs.rows_general", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    </div>

    <!-- ------------------------------------- ONGLET CONTACTS ------------------------------- -->
    <div class="tab-pane fade <?php echo ($onglet_actif=='adresse')?'active show':''; ?>" id="adresse" role="tabpanel" aria-labelledby="adresse-tab">
        <?php echo $__env->make("tiers.employeurs.rows_contacts", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    </div>

    <?php if($mode!="create"): ?>
        <!-- ------------------------------------- ONGLET EMPLOYES ------------------------------- -->
        <div class="tab-pane fade <?php echo ($onglet_actif=='employes')?'active show':''; ?>" id="employes" role="tabpanel" aria-labelledby="employes-tab">
            <?php echo $__env->make("tiers.employeurs.rows_employes", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
    <?php endif; ?>

        <!-- ------------------------------------- ONGLET BANQUE ------------------------------- -->
        <div class="tab-pane fade <?php echo ($onglet_actif=='banque')?'active show':''; ?>" id="banque" role="tabpanel" aria-labelledby="banque-tab">
            <?php echo $__env->make("tiers.employeurs.rows_banques", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>

    
        <!-- ------------------------------------- ONGLET COTISATIONS ------------------------------- -->
        <div class="tab-pane fade <?php echo ($onglet_actif=='cotisations')?'active show':''; ?>" id="cotisations" role="tabpanel" aria-labelledby="cotisations-tab">
            <?php echo $__env->make("tiers.employeurs.rows_cotisations", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
    

    <?php if($mode!="create"): ?>
        <!-- ------------------------------------- ONGLET CONTROLES ------------------------------- -->
        <div class="tab-pane fade <?php echo ($onglet_actif=='controles')?'active show':''; ?>" id="controles" role="tabpanel" aria-labelledby="controles-tab">
            <?php echo $__env->make("tiers.employeurs.rows_controles", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>

        <!-- ------------------------------------- ONGLET COMPTA ------------------------------- -->
        <div class="tab-pane fade <?php echo ($onglet_actif=='compta')?'active show':''; ?>" id="compta" role="tabpanel" aria-labelledby="compta-tab">
            <?php echo $__env->make("tiers.employeurs.rows_compta", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
    <?php endif; ?>
    
</div>

<!-- modal : saisie péridoe de cotisation -->
<div class="modal fade" id="modal-bordereau">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <h4 class="modal-title">Bordereau de cotisation</h4>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">
            <?php echo html()->label('Veuillez saisir la période de cotisation','per_cotis'); ?>

            <?php echo html()->select('annee_cotis')->options($exercices)
                ->value(date('Y')-1)
                ->placeholder('')
                ->attributes(['id' => 'annee_cotis','class' => 'form-control selectpicker','data-width' => "100%",'style' => 'font-weight:bold;background:whitesmoke']); ?>

            <br/><br/>
           <?php echo html()->select('tri_cotis')->options([""=>"Choisissez un trimestre","T1"=>"1er trimestre","T2"=>"2e trimestre","T3"=>"3e trimestre","T4"=>"4e trimestre"])
                ->value("")
                ->placeholder('')
                ->attributes(['id'=>'tri_cotis','class' => 'form-control selectpicker','data-width' => "100%",'style' => 'font-weight:bold;background:whitesmoke']); ?>


            <br/><br/>
            <?php echo html()->text('per_cotis', null)->placeholder('Libellé de la période')->attributes(['class' => 'form-control','id'=>'per_cotis']); ?>

        </div>
        <div class="modal-footer justify-content-between">
          <button id="btn_close_periode_bordereau" type="button" class="btn btn-default" data-dismiss="modal">Annuler</button>
          <button id="btn_valide_periode_bordereau" type="button" class="btn btn-primary">OK</button>
        </div>
      </div>
      <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<!-- /.modal -->


<div class='form-group'>
    <?php if($mode=="show"): ?>
        <?php if($user->hasRole("ADMINISTRATEUR") || $user->can("EMP_MAJ")): ?>
            <a class="btn btn-primary" href="<?php echo url('/employeurs_filtre/'.$employeur->id.'/'.$origine.'/'.$onglet_actif.'/edit'); ?>">Modifier</a>
        <?php endif; ?>
        <a class="btn btn-warning"  href="<?php echo url('/employeurs_liste/'.$origine); ?>">Retour</a>
    <?php else: ?>
        <?php if(($origine=="C") && isset($mode_lettrage) && ($mode_lettrage)): ?>
            <a class="btn btn-warning"  href="<?php echo url('/employeurs_filtre/'.$employeur->id.'/'.$origine.'/'.$onglet_actif); ?>">Sortir du Lettrage</a>
        <?php else: ?>
            <?php echo html()->button('Enregistrer')->value('Enregistrer')->type('submit')->attributes(['class' => 'btn btn-primary']); ?>

            <a class="btn btn-warning"  href="<?php echo url('/employeurs_liste/'.$origine); ?>">Retour</a>
        <?php endif; ?>
    <?php endif; ?>
</div>


<?php /**PATH C:\xampp\htdocs\SYSINFO\cpswf\sipre2\resources\views/tiers/employeurs/content.blade.php ENDPATH**/ ?>