<div>
    
    <div wire:ignore.self
                class="modal fade"
                id="confirmation_modal_taux_change"
                tabindex="-1"
                role="dialog"
                aria-hidden="true"
                data-backdrop="static"
            >
                <div
                    class="modal-dialog modal-dialog-centered"
                    role="document"
                >
                    <div class="modal-content">
                        <div class="modal-body text-center font-18">
                            <h4 class="padding-top-30 mb-30 weight-500">
                                Voulez-vous faire ce changement?
                            </h4>
                            <div
                                class="padding-bottom-30 row"
                                style="max-width: 170px; margin: 0 auto"
                            >
                                <div class="col-6">
                                    <button
                                        type="button"
                                        class="btn btn-secondary border-radius-100 "
                                        data-dismiss="modal"
                                    >
                                    <i class="fa fa-times"></i> Non
                                        </button>
                                                    
                        </div>
                        <div class="col-6">
                            <button
                                type="button"
                                class="btn btn-primary border-radius-100 "
                                wire:click="storeTauxChange"
                            >
                                <i class="fa fa-check"></i> Oui
                            </button>
                            
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div wire:ignore.self
                class="modal fade"
                id="confirmation_modal_cloture_periode"
                tabindex="-1"
                role="dialog"
                aria-hidden="true"
                data-backdrop="static"
            >
                <div
                    class="modal-dialog modal-dialog-centered"
                    role="document"
                >
                    <div class="modal-content">
                        <div class="modal-body text-center font-18">
                            <h4 class="padding-top-30 mb-30 weight-500">
                                Voulez-vous faire cette clôture d'une période ?
                            </h4>
                            <div
                                class="padding-bottom-30 row"
                                style="max-width: 170px; margin: 0 auto"
                            >
                                <div class="col-6">
                                    <button
                                        type="button"
                                        class="btn btn-secondary border-radius-100 "
                                        data-dismiss="modal"
                                    >
                                    <i class="fa fa-times"></i> Non
                                        </button>
                                                    
                        </div>
                        <div class="col-6">
                            <button
                                type="button"
                                class="btn btn-primary border-radius-100 "
                                wire:click="StoreCloturePeriode"
                            >
                                <i class="fa fa-check"></i> Oui
                            </button>
                            
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div wire:ignore.self
    class="modal fade"
    id="confirmation_modal_cloture_exercice"
    tabindex="-1"
    role="dialog"
    aria-hidden="true"
    data-backdrop="static"
>
    <div
        class="modal-dialog modal-dialog-centered"
        role="document"
    >
        <div class="modal-content">
            <div class="modal-body text-center font-18">
                <h4 class="padding-top-30 mb-30 weight-500">
                    Voulez-vous clôturer <?php echo e(getExercice()); ?>  ?
                </h4>
                <div
                    class="padding-bottom-30 row"
                    style="max-width: 170px; margin: 0 auto"
                >
                    <div class="col-6">
                        <button
                            type="button"
                            class="btn btn-secondary border-radius-100 "
                            data-dismiss="modal"
                        >
                        <i class="fa fa-times"></i> Non
                            </button>
                                        
            </div>
            <div class="col-6">
                <button
                    type="button"
                    class="btn btn-primary border-radius-100 "
                    wire:click="StoreClotureExercice"
                >
                    <i class="fa fa-check"></i> Oui
                </button>
                
            </div>
        </div>
    </div>
</div>
</div>
</div>

       
    <div class="profile-tab height-100-p">
        <div class="tab height-100-p">
            <ul class="nav nav-tabs customtab" role="tablist">
                <li class="nav-item">
                    <a wire:click.prevent="selectTab('taux_change')" class="nav-link <?php echo e($tab == 'taux_change' ? 'active' : ''); ?>" data-toggle="tab" href="#timeline" role="tab">Taux de change</a>
                </li>
                <li class="nav-item">
                    <a wire:click.prevent="selectTab('ouverture')" class="nav-link <?php echo e($tab == 'ouverture' ? 'active' : ''); ?>" data-toggle="tab" href="#ouverture" role="tab">Ouverture Excercice</a>
                </li>
                <li class="nav-item">
                    <a wire:click.prevent="selectTab('cloture')" class="nav-link <?php echo e($tab == 'cloture' ? 'active' : ''); ?>" data-toggle="tab" href="#tasks" role="tab">Clôture Excercice</a>
                </li>
                <li class="nav-item">
                    <a wire:click.prevent="selectTab('config')" class="nav-link <?php echo e($tab == 'config' ? 'active' : ''); ?>" data-toggle="tab" href="#config" role="tab">Configuration initiale</a>
                </li>
            </ul>
            <div class="tab-content">
                <!-- Timeline Tab start -->
                <div class="tab-pane fade <?php echo e($tab == 'taux_change' ? 'show active' : ''); ?>" id="timeline" role="tabpanel">
                    <div class="pd-20">
                        <div class="row">
                            <div class="col-6">
                                <form wire:submit.prevent="saveTauxChange()" action="">
                                    <div class="row">
                                        <div class="col-md-7">
                                            <div class="form-group">
                                                <label for="">A partir de : </label><small> (date)</small>
                                                <input type="date" wire:model="dateChange" class="form-control form-control-sm"   >
                                                <!-- __BLOCK__ --><?php $__errorArgs = ['dateChange'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                    <small class="form-text text-danger"><?php echo e($message); ?></small>
                                                <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> <!-- __ENDBLOCK__ -->
                                            </div>
                                        </div>
                                    </div>
        
                                    <!-- __BLOCK__ --><?php $__empty_1 = true; $__currentLoopData = $inputs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                    <div class="row form-group">
                                        <div class="col-md-2">
                                            <input type="text" wire:model="inputs.<?php echo e($key); ?>.devise_start"  class="form-control form-control-sm"   readonly>
                                        </div>
                                        <div class="col-md-3">
                                            <input type="text" wire:model="inputs.<?php echo e($key); ?>.taux"  class="form-control form-control-sm">
                                            <!-- __BLOCK__ --><?php $__errorArgs = ['inputs.'.$key.'.taux'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                <small class="form-text text-danger"><?php echo e($message); ?></small>
                                            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> <!-- __ENDBLOCK__ -->
                                        </div>
                                        <div class="col-md-2">
                                            <input type="text" wire:model="inputs.<?php echo e($key); ?>.devise_end" class="form-control form-control-sm"    readonly>
                                        </div>
                                    </div>
                                   
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                        
                                    <?php endif; ?> <!-- __ENDBLOCK__ -->
                                    
                                    <div class="mb-2">
                                        <p class="mb-1"><span class="text-danger"><small> Important ! </span>
                                        Aucune modification ne sera autorisée après validation</small></p>
                                    </div>
                                    <button type="submit" class="btn btn-primary btn-sm">Enregistrer</button>
                                   
                                </form>
                            </div>
                            <div class="col-6">
                                <div style="height:200px; overflow:auto;">
                                    <table id="table" class="table-striped mb-2" border="1" style="width:100%; font-size:0.8rem;">
                                        <thead>
                                            <tr>
                                                <th colspan="3" class="pl-1"  style="font-size:0.9rem; background-color:beige; text-align:center;">Historique taux de change</th>
                                            </tr>
                                        
                                                <tr>
                                                    <td class="pl-1" style="width: 20%;">De</td>
                                                    <td class="pl-1" style="width: 20%;">Au</td>
                                                    <td class="pl-1" >Taux</td>
                                                   
                                                </tr>
                                            
                                        </thead>
                                        <tbody>
                                           
                                            <!-- __BLOCK__ --><?php $__empty_1 = true; $__currentLoopData = get_historique_tauxChange(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                                <tr>
                                                    <td class="pl-1"><?php echo e(get_format_date($data->valid_from)); ?></td>
                                                    <td class="pl-1"><?php echo e(get_format_date($data->valid_to)); ?></td>
                                                    <td class="pl-1">
                                                        1 <?php echo e($data->devise_start); ?> = 
                                                        <?php echo e(get_format_montant($data->taux)); ?>

                                                         <?php echo e($data->devise_end); ?>

                                                    </td>
                                                    
                                                </tr>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                                <tr>
                                                    <td colspan="3" align="center">Aucune donnée trouvée</td>
                                                </tr>
                                            <?php endif; ?> <!-- __ENDBLOCK__ -->
                                            
                                            
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                       
                    </div>
                </div>
                <!-- Timeline Tab End -->
                <!-- Tasks Tab start -->
                <div class="tab-pane fade <?php echo e($tab == 'ouverture' ? 'show active' : ''); ?>" id="ouverture" role="tabpanel">
                   <div class="pd-20 profile-task-wrap">
                    <div class="row">
                        
                        <div class="col-md-6">
                            <form wire:submit.prevent="OpenExercice()">
                                <div class="row">
                                    <div class="col-md-6">
                                        <label for="">Date début </label>
                                        <input type="date"  class="form-control form-control-sm"  wire:model="date_start"   >
                                        <!-- __BLOCK__ --><?php $__errorArgs = ['date_start'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <small class="form-text text-danger"><?php echo e($message); ?></small>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> <!-- __ENDBLOCK__ -->
                                   
                                </div>
                                <div class="col-md-6">
                                        <label for="">Date fin </label>
                                        <input type="date"  class="form-control form-control-sm"  wire:model="date_end" >
                                        <!-- __BLOCK__ --><?php $__errorArgs = ['date_end'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                            <small class="form-text text-danger"><?php echo e($message); ?></small>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> <!-- __ENDBLOCK__ -->
                                    
                                </div>
                                   
                                </div>
                                <div class="mt-2 mb-2">
                                    <p class="mb-1"><span class="text-danger"><small> Important ! </span>
                                    Aucune modification ne sera autorisée après validation</small></p>
                                </div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <button type="submit" class="btn btn-primary btn-sm" style="width: 45%;">Ouvrir</button>
                                    </div>
                                   
                                </div>
                                
                                </form>
                        </div>
                        <div class="col-6">
                                <div style="height:200px; overflow:auto;">
                                    <table id="table" class="table-striped mb-2" border="1" style="width:100%; font-size:0.8rem;">
                                        <thead>
                                            <tr>
                                                <th colspan="3" class="pl-1"  style="font-size:0.9rem; background-color:beige; text-align:center;">Historique des Exercices</th>
                                            </tr>
                                        
                                                <tr>
                                                    <td class="pl-1" >Exercice</td>
                                                    <td class="pl-1" style="width: 40%;">Date création</td>
                                                    <td class="pl-1" style="width: 40%;">Date fermeture</td>
                                                    
                                                   
                                                </tr>
                                            
                                        </thead>
                                        <tbody>
                                           
                                            <!-- __BLOCK__ --><?php $__empty_1 = true; $__currentLoopData = get_historique_exercice(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                                <tr>
                                                    <td class="pl-1">
                                                         <?php echo e($data->exercice); ?> 
                                                    </td>
                                                    <td class="pl-1"><?php echo e(get_format_date($data->date_crea)); ?></td>
                                                    <td class="pl-1"><?php echo e(get_format_date($data->date_closed)); ?></td>
                                                    
                                                </tr>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                                <tr>
                                                    <td colspan="3" align="center">Aucune donnée trouvée</td>
                                                </tr>
                                            <?php endif; ?> <!-- __ENDBLOCK__ -->
                                            
                                            
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                    </div>
                 
                   </div>
                </div>
                <!-- Tasks Tab End -->
                 <!-- Tasks Tab start -->
                 <div class="tab-pane fade <?php echo e($tab == 'cloture' ? 'show active' : ''); ?>" id="tasks" role="tabpanel">
                    <div class="pd-20 profile-task-wrap">
                     <div class="row">
                         <div class="col-md-6">
                            <div style="height:200px; overflow:auto;">
                                <table id="table" class="table-striped mb-2" border="1" style="width:100%; font-size:0.8rem;">
                                    <thead>
                                        <tr>
                                            <th colspan="3" class="pl-1"  style="font-size:0.9rem; background-color:beige; text-align:center;">
                                                Historique des Clôtures périodiques
                                            </th>
                                        </tr>
                                    
                                            <tr>
                                                <td class="pl-1" >Exercice</td>
                                                <td class="pl-1" style="width: 70%;">Jusqu'à</td>
                                            </tr>
                                        
                                    </thead>
                                    <tbody>
                                       
                                        <!-- __BLOCK__ --><?php $__empty_1 = true; $__currentLoopData = get_historique_cloture_periode(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                            <tr>
                                                <td class="pl-1">
                                                     <?php echo e($data->exercice); ?> 
                                                </td>
                                                <td class="pl-1"><?php echo e(get_format_date($data->date_valeur)); ?></td>
                                            </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                            <tr>
                                                <td colspan="3" align="center">Aucune donnée trouvée</td>
                                            </tr>
                                        <?php endif; ?> <!-- __ENDBLOCK__ -->
                                        
                                    </tbody>
                                </table>
                            </div>
                         </div>
                         <div class="col-md-6">
                             <form >
                                 <div class="row">
                                     <div class="col-md-10">
                                         <div class="form-group">
                                             <label for="">Cloture à la date de</label>
                                             <input type="date"  class="form-control form-control-sm" wire:model="dateCloture" >
                                             <!-- __BLOCK__ --><?php $__errorArgs = ['dateCloture'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                                  <small class="form-text text-danger"><?php echo e($message); ?></small>
                                             <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> <!-- __ENDBLOCK__ -->
                                         </div>
                                     </div>
                                    
                                 </div>
                                 <div class="mb-2">
                                    <p class="mb-1"><span class="text-danger"><small> Important ! </span>
                                    Aucune modification ne sera autorisée après validation</small></p>
                                </div>
                                 <div class="row">
                                     <div class="col-md-6">
                                         <button type="button" wire:click="CloturePeriode" class="btn btn-primary btn-sm">Clôture d'une Période</button>
                                     </div>
                                     <div class="col-md-6">
                                         <button type="button" wire:click="ClotureExercice" class="btn btn-danger btn-sm">Clôture de l'Excercice</button>
                                     </div>
                                 </div>
                                 
                                 </form>
                         </div>
                     </div>
                  
                    </div>
                 </div>
                 <!-- Tasks Tab End -->

                   <!-- Config Tab start -->
                <div class="tab-pane fade <?php echo e($tab == 'config' ? 'show active' : ''); ?>" id="config" role="tabpanel">
                    <div class="pd-20 profile-task-wrap">
                     <div class="row">
                         
                         <div class="col-md-8">
                             <form wire:submit.prevent="ImportConfig">
                                 <div class="row">
                                     <div class="col-md-4">
                                         <label for="">Tache </label>
                                         <select wire:model="todo"  class="form-control form-control-sm" >
                                            <option value="balanceOuverture">Balance d'ouverture</option>
                                            <option value="100">100</option>
                                        </select>
                                         <!-- __BLOCK__ --><?php $__errorArgs = ['todo'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                             <small class="form-text text-danger"><?php echo e($message); ?></small>
                                         <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> <!-- __ENDBLOCK__ -->
                                    
                                 </div>
                                 <div class="col-md-8">
                                         <label for="">fichier </label>
                                         <input type="file" wire:model="file" accept=".xlsx"
                                         class="form-control-file form-control height-auto form-control-sm" />
                                        <!-- __BLOCK__ --><?php $__errorArgs = ['file'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                                             <small class="form-text text-danger"><?php echo e($message); ?></small>
                                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> <!-- __ENDBLOCK__ -->
                                     
                                 </div>
                                    
                                 </div>
                                 <div class="mt-2 mb-2">
                                     <p class="mb-1"><span class="text-danger"><small> Important ! </span>
                                     Aucune modification ne sera autorisée après validation</small></p>
                                 </div>
                                 <div class="row">
                                     <div class="col-md-6">
                                         
                                         <button type="submit" class="btn btn-primary btn-sm" wire:loading.attr="disabled" style="width:45%;">
                                            <div class="spinner-border spinner-border-sm"  role="status" wire:loading wire:target="ImportConfig">
                                                <span class="visually-hidden"></span>
                                            </div>
                                            
                                            <div wire:loading.remove wire:target="ImportConfig">
                                                Importer
                                            </div>
                                        </button>
                                     </div>
                                    
                                 </div>
                                 
                                 </form>
                         </div>
                         <div class="col-md-4">
 
                         </div>
                     </div>
                  
                    </div>
                 </div>
                 <!-- Config Tab End -->
              
            </div>
         </div>
    </div>
<?php /**PATH D:\laravel_apps\access\resources\views/livewire/administration.blade.php ENDPATH**/ ?>