<div class="pd-20 card-box">
       
  
    <div class="tab">
        <div class="row clearfix">
            <div class="col-md-2 col-sm-12">
                <ul
                    class="nav flex-column vtabs nav-tabs customtab"
                    role="tablist"
                >
                    <li class="nav-item">
                        <a  
                            wire:click.prevent="selectTab('facture')"
                            class="nav-link <?php echo e($tab == 'facture' ? 'active' : ''); ?>"
                            data-toggle="tab"
                            href="#sur_facture"
                            role="tab"
                            aria-selected="true"
                            >Règlement sur Facture</a
                        >
                    </li>
                    <li class="nav-item">
                        <a  
                            wire:click.prevent="selectTab('tiers')"
                            class="nav-link <?php echo e($tab == 'tiers' ? 'active' : ''); ?>"
                            data-toggle="tab"
                            href="#sur_tiers"
                            role="tab"
                            aria-selected="false"
                            >Règlement sur Tiers</a
                        >
                    </li>
                    <li class="nav-item">
                        <a  
                            wire:click.prevent="selectTab('td')"
                            class="nav-link <?php echo e($tab == 'td' ? 'active' : ''); ?>"
                            data-toggle="tab"
                            href="#transac_diverse"
                            role="tab"
                            aria-selected="false"
                            >Transactions diverses</a
                        >
                    </li>
                </ul>
            </div>
            <div class="col-md-10 col-sm-12">
                <div class="tab-content">
                    <div class="spinner_t">
                    <div class="spinner-border spinner-border-sm"  role="status" wire:loading wire:target="selectTab">
                        <span class="visually-hidden"></span>
                    </div>
                    </div>
                    <div wire:loading.remove wire:target="selectTab"
                        class="tab-pane fade <?php echo e($tab == 'facture' ? 'show active' : ''); ?>"
                        id="sur_facture"
                        role="tabpanel"
                    >
                        <div class="pd-20">
                    
                            <form enctype="multipart/form-data" >
                                         <div class="row mb-2">
                                             <div class="col-md-4">
                                                     <label for="">Date <span style="color:red;">*</span></label>
                                                     <input type="date"  class="form-control form-control-sm" wire:model="date_facture" tabindex="1" maxlength="50" >
                                                     <!-- __BLOCK__ --><?php $__errorArgs = ['date_facture'];
$__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-4">
                                                 
                                                     <label for="">Réference doc. <span style="color:red;">*</span></label>
                                                     <input type="text"  class="form-control form-control-sm" wire:model="Reference_facture" tabindex="2" maxlength="50"   >
                                                     <!-- __BLOCK__ --><?php $__errorArgs = ['Reference_facture'];
$__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-4">
                                                 
                                                <label for="">Justification</label>
                                                <input type="text"  class="form-control form-control-sm" wire:model="justification_facture" tabindex="2" maxlength="50"   >
                                                <!-- __BLOCK__ --><?php $__errorArgs = ['justification_facture'];
$__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=" row mb-2">
                                                 <div class="col-md-8">
                                                         <label for="">Libellé<span style="color:red;">*</span></label>
                                                         <input type="text"  class="form-control form-control-sm" wire:model="libelle_facture" tabindex="5" maxlength="150"   >
                                                         <!-- __BLOCK__ --><?php $__errorArgs = ['libelle_facture'];
$__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-4">
                                                    <label for="">Pièce justificative</label> <small class="text-muted">(.pdf)</small>
                                                    <input type="file"  class="form-control form-control-sm" wire:model="file_piece_justif_facture" accept=".pdf" placeholder="attachez pdf">
                                                    <!-- __BLOCK__ --><?php $__errorArgs = ['file_piece_justif_facture'];
$__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="row mb-3">
                                         
                                             <div class="col-md-4">
                                                     <label for="">Compte de Banque</label>
                                                     <select 
                                                                 class="form-control form-control-sm"
                                                                 wire:model="CompteBanque_facture" 
                                                                 tabindex="7"
                                                                         >
                                                                     <option value="" ></option>
                                                                <!-- __BLOCK__ --><?php $__currentLoopData = get_compte_banque(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $compte): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                                     <option value="<?php echo e($compte->num_compte); ?>"><?php echo e($compte->num_compte); ?> - <?php echo e($compte->nom_compte); ?></option>
                                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <!-- __ENDBLOCK__ -->
                                                                             
                                                     </select>
                                                     <!-- __BLOCK__ --><?php $__errorArgs = ['CompteBanque_facture'];
$__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-4">
                                                 
                                                <label for="">Montant</label>
                                                <input type="text"  class="form-control form-control-sm" wire:model="montant_facture" 
                                                tabindex="10" maxlength="20"
                                                >
                                                <!-- __BLOCK__ --><?php $__errorArgs = ['montant_facture'];
$__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-4">
                                                <label for="">Devise <span style="color:red;">*</span></label>
                                                <select class="form-control form-control-sm" wire:model="devise_facture" tabindex="4">
                                                   <!-- __BLOCK__ --><?php $__currentLoopData = get_select_devise(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $devise): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                       <option value="<?php echo e($devise->devise); ?>"><?php echo e($devise->devise); ?> - <?php echo e($devise->intitule); ?></option>
                                                   <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <!-- __ENDBLOCK__ -->
                                                </select>
                                                <!-- __BLOCK__ --><?php $__errorArgs = ['devise_facture'];
$__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="row zone_btn">
                                         <button type="button" wire:click="resetForm_Facture" class="btn btn-light btn-sm">Annuler</button>
                                                     
                                         <button type="button" class="btn btn-primary btn-sm" wire:click="saveSurFacture" wire:loading.attr="disabled" style="width:15%;" > 
                                                 
                                                 <div class="spinner-border spinner-border-sm"  role="status" wire:loading wire:target="saveSurFacture">
                                                     <span class="visually-hidden"></span>
                                                 </div>
                                 
                                                 <div wire:loading.remove wire:target="saveSurFacture">
                                                     Enregistrer 
                                                 </div>
                                             
                                         </button>
                                         <button type="button" wire:click="$dispatch('OpenModalFactureCliquable',['banque'])"  class="btn btn-outline-success btn-sm">Facture Client | Fournisseur</button>
                                         <button type="button" wire:click="goToJournalCompta" class="btn btn-outline-success btn-sm">Apercu Journal</button>
                                         <button type="button" wire:click="$dispatch('NewTiers')" class="btn btn-outline-primary btn-sm">Solde des Banques</button>
                                </div>
                            </form>
                           
                        </div>
                    </div>
                    <div wire:loading.remove wire:target="selectTab"
                        class="tab-pane fade  <?php echo e($tab == 'tiers' ? 'show active' : ''); ?>"
                        id="sur_tiers"
                        role="tabpanel"
                    >
                        <div class="pd-20">
                            
                            <form enctype="multipart/form-data" >
                                <div class="row mb-2">
                                    <div class="col-md-4">
                                       
                                            <label for="">Date <span style="color:red;">*</span></label>
                                            <input type="date"  class="form-control form-control-sm" wire:model="date_tiers" tabindex="1" maxlength="50" >
                                            <!-- __BLOCK__ --><?php $__errorArgs = ['date_tiers'];
$__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-4">
                                        <label for="">Tiers <span style="color:red;">*</span></label>
                                        <select 
                                            class="form-control form-control-sm"
                                            wire:model.live="idTiers"
                                            tabindex="6"
                                                    >
                                                <option value="">select</option>
                                                <optgroup label="FOURNISSEUR">  
                                                   <!-- __BLOCK__ --><?php $__currentLoopData = get_tiers('fourn'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $info): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                           <option value="<?php echo e($info->id); ?>"><?php echo e($info->denomination); ?> </option>
                                                   <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <!-- __ENDBLOCK__ -->
                                               </optgroup>
                                               <optgroup label="CLIENT">  
                                                   <!-- __BLOCK__ --><?php $__currentLoopData = get_tiers('client'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $info): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                           <option value="<?php echo e($info->id); ?>"><?php echo e($info->denomination); ?> </option>
                                                   <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <!-- __ENDBLOCK__ -->
                                               </optgroup>           
                                        </select>
                                </div>
                                    <div class="col-md-4">
                                       <label for="">Justification</label>
                                       <input type="text"  class="form-control form-control-sm" wire:model="justification_tiers" tabindex="2" maxlength="50"   >
                                       <!-- __BLOCK__ --><?php $__errorArgs = ['justification_tiers'];
$__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=" row mb-2">
                                        <div class="col-md-8">
                                           
                                                <label for="">Libellé<span style="color:red;">*</span></label>
                                                <input type="text"  class="form-control form-control-sm" wire:model="libelle_tiers" tabindex="5" maxlength="150"   >
                                                <!-- __BLOCK__ --><?php $__errorArgs = ['libelle_tiers'];
$__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-4">
                                    
                                
                                           <label for="">Pièce justificative</label> <small class="text-muted">(.pdf)</small>
                                           <input type="file"  class="form-control form-control-sm" wire:model="file_piece_justif_tiers" accept=".pdf" placeholder="attachez pdf">
                                           <!-- __BLOCK__ --><?php $__errorArgs = ['file_piece_justif_tiers'];
$__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="row mb-3">

                                        <div class="col-md-3">
                                            <label for="">Compte tiers</label>
                                            <select 
                                                        class="form-control form-control-sm"
                                                        wire:model.live="CompteTiers_tiers" 
                                                        tabindex="7"
                                                                >
                                                            <option value="" ></option>
                                                        <!-- __BLOCK__ --><?php if($ListCompte): ?>
                                                            <!-- __BLOCK__ --><?php $__currentLoopData = $ListCompte; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $compte): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                                    <option <?php if($value_tiers == $compte->num_compte): echo 'selected'; endif; ?> value="<?php echo e($compte->num_compte); ?>"><?php echo e($compte->num_compte); ?> - <?php echo e($compte->nom_compte); ?></option>
                                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <!-- __ENDBLOCK__ -->
                                                        <?php endif; ?> <!-- __ENDBLOCK__ -->
                                                                    
                                            </select>
                                            <!-- __BLOCK__ --><?php $__errorArgs = ['CompteTiers_tiers'];
$__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-3">
                                            <label for="">Compte de Banque</label>
                                            <select 
                                                        class="form-control form-control-sm"
                                                        wire:model.live="CompteBanque_tiers" 
                                                        tabindex="7"
                                                                >
                                                            <option value="" ></option>
                                                            <!-- __BLOCK__ --><?php $__currentLoopData = get_compte_banque(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $compte): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
															    <option value="<?php echo e($compte->num_compte); ?>"><?php echo e($compte->num_compte); ?> - <?php echo e($compte->nom_compte); ?></option>
													        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <!-- __ENDBLOCK__ -->
                                                       
                                                                    
                                            </select>
                                            <!-- __BLOCK__ --><?php $__errorArgs = ['CompteBanque_tiers'];
$__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-3">
                                        
                                       <label for="">Montant</label>
                                       <input type="text"  class="form-control form-control-sm" wire:model="montant_tiers"
                                       tabindex="10" maxlength="20"
                                       >
                                       <!-- __BLOCK__ --><?php $__errorArgs = ['montant_tiers'];
$__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-3">
                                    
                                       <label for="">Devise <span style="color:red;">*</span></label>
                                       <select class="form-control form-control-sm" wire:model="devise_tiers" tabindex="4">
                                          <!-- __BLOCK__ --><?php $__currentLoopData = get_select_devise(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $devise): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                              <option value="<?php echo e($devise->devise); ?>"><?php echo e($devise->devise); ?> - <?php echo e($devise->intitule); ?></option>
                                          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <!-- __ENDBLOCK__ -->
                                       </select>
                                       <!-- __BLOCK__ --><?php $__errorArgs = ['devise_tiers'];
$__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="row zone_btn">
                                            <button type="button" wire:click="resetForm_Tiers" class="btn btn-light btn-sm">Annuler</button>
                                                        
                                            <button type="button" class="btn btn-primary btn-sm" wire:click="enCaissement" wire:loading.attr="disabled" style="width:15%;"> 
                                                    
                                                    <div class="spinner-border spinner-border-sm"  role="status" wire:loading wire:target="enCaissement">
                                                        <span class="visually-hidden"></span>
                                                    </div>
                                    
                                                    <div wire:loading.remove wire:target="enCaissement">
                                                        Encaissement 
                                                    </div>
                                                
                                            </button>

                                            <button type="button" class="btn btn-danger btn-sm" wire:click="DeCaissement" wire:loading.attr="disabled" style="width:15%;" > 
                                                    
                                                <div class="spinner-border spinner-border-sm"  role="status" wire:loading wire:target="DeCaissement">
                                                    <span class="visually-hidden"></span>
                                                </div>
                                                
                                                <div wire:loading.remove wire:target="DeCaissement">
                                                    Décaissement 
                                                </div>
                                            
                                            </button>
                        
                                            <button type="button" wire:click="goToJournalCompta" class="btn btn-outline-success btn-sm">Apercu Journal</button>
                                            <button type="button" wire:click="$dispatch('NewTiers')" class="btn btn-outline-primary btn-sm">Solde des Banques</button>
                                </div>
                            </form>
                        </div>
                    </div>
                    <div wire:loading.remove wire:target="selectTab"
                        class="tab-pane fade <?php echo e($tab == 'td' ? 'show active' : ''); ?>"
                        id="transac_diverse"
                        role="tabpanel"
                    >
                        <div class="pd-20">
                            <form enctype="multipart/form-data" >
                                <div class="row mb-2">
                                    <div class="col-md-4">
                                       
                                            <label for="">Date <span style="color:red;">*</span></label>
                                            <input type="date"  class="form-control form-control-sm" wire:model="date_td" tabindex="1" >
                                            <!-- __BLOCK__ --><?php $__errorArgs = ['date_td'];
$__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="">Justification</label>
                                       <input type="text"  class="form-control form-control-sm" wire:model="justification_td" tabindex="2" maxlength="50"   >
                                       <!-- __BLOCK__ --><?php $__errorArgs = ['justification_td'];
$__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=" row mb-2">
                                        <div class="col-md-8">
                                           
                                                <label for="">Libellé<span style="color:red;">*</span></label>
                                                <input type="text"  class="form-control form-control-sm" wire:model="libelle_td" tabindex="5" maxlength="150"   >
                                                <!-- __BLOCK__ --><?php $__errorArgs = ['libelle_td'];
$__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-4">
                                           <label for="">Pièce justificative</label> <small class="text-muted">(.pdf)</small>
                                           <input type="file"  class="form-control form-control-sm" wire:model="file_piece_justif_td" accept=".pdf" placeholder="attachez pdf">
                                           <!-- __BLOCK__ --><?php $__errorArgs = ['file_piece_justif_td'];
$__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="row mb-3">
                                        <div class="col-md-3">
                                            <label for="">Compte Général</label>
                                            <select 
                                                        class="form-control form-control-sm"
                                                        wire:model.live="CompteTiers_td" 
                                                        tabindex="7"
                                                                >
                                                            <option value="" ></option>
                                                       
                                                                    
                                            </select>
                                            <!-- __BLOCK__ --><?php $__errorArgs = ['CompteTiers_td'];
$__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-3">
                                            <label for="">Compte de Banque</label>
                                            <select 
                                                        class="form-control form-control-sm"
                                                        wire:model.live="CompteBanque_td" 
                                                        tabindex="7"
                                                                >
                                                            <option value="" ></option>
                                                        <!-- __BLOCK__ --><?php $__currentLoopData = get_compte_banque(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $compte): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
															<option value="<?php echo e($compte->num_compte); ?>"><?php echo e($compte->num_compte); ?> - <?php echo e($compte->nom_compte); ?></option>
													    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <!-- __ENDBLOCK__ -->
                                                                    
                                            </select>
                                            <!-- __BLOCK__ --><?php $__errorArgs = ['CompteBanque_td'];
$__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-3">
                                        
                                       <label for="">Montant</label>
                                       <input type="text"  class="form-control form-control-sm" wire:model="montant_td"
                                       tabindex="10" maxlength="20"
                                       >
                                       <!-- __BLOCK__ --><?php $__errorArgs = ['montant_td'];
$__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-3">
                                    
                                       <label for="">Devise <span style="color:red;">*</span></label>
                                       <select class="form-control form-control-sm" wire:model="devise_td" tabindex="4">
                                          <!-- __BLOCK__ --><?php $__currentLoopData = get_select_devise(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $devise): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                              <option value="<?php echo e($devise->devise); ?>"><?php echo e($devise->devise); ?> - <?php echo e($devise->intitule); ?></option>
                                          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <!-- __ENDBLOCK__ -->
                                       </select>
                                       <!-- __BLOCK__ --><?php $__errorArgs = ['devise_td'];
$__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="row zone_btn">
                                            <button type="button" wire:click="resetForm_TD" class="btn btn-light btn-sm">Annuler</button>
                                                        
                                            <button type="button" class="btn btn-primary btn-sm" wire:click="enCaissement_" wire:loading.attr="disabled" style="width:15%;"> 
                                                    
                                                    <div class="spinner-border spinner-border-sm"  role="status" wire:loading wire:target="enCaissement_">
                                                        <span class="visually-hidden"></span>
                                                    </div>
                                    
                                                    <div wire:loading.remove wire:target="enCaissement_">
                                                        Encaissement 
                                                    </div>
                                                
                                            </button>

                                            <button type="button" class="btn btn-danger btn-sm" wire:click="DeCaissement_" wire:loading.attr="disabled" style="width:15%;"> 
                                                    
                                                <div class="spinner-border spinner-border-sm"  role="status" wire:loading wire:target="DeCaissement_">
                                                    <span class="visually-hidden"></span>
                                                </div>
                                
                                                <div wire:loading.remove wire:target="DeCaissement_">
                                                    Décaissement 
                                                </div>
                                            
                                            </button>
                        
                                            <button type="button" wire:click="goToJournalCompta" class="btn btn-outline-success btn-sm">Apercu Journal</button>
                                            <button type="button" wire:click="$dispatch('NewTiers')" class="btn btn-outline-primary btn-sm">Solde des Banques</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>



<?php /**PATH D:\laravel_apps\big-manager\resources\views/livewire/saisie-journal-banque.blade.php ENDPATH**/ ?>