<div>
    <form wire:submit.prevent="searchJournal()" >
        <div class="row">
            <div class="col-md-2">
               
                    <select wire:model.live="ligne"   class="form-control form-control-sm" style="width: 50%;"  >
                        <option value="10">10</option>
                        <option value="25">25</option>
                        <option value="50">50</option>
                        <option value="75">75</option>
                        <option value="100">100</option>
                    </select>

            </div>
            <div class="col-md-2">
                    <select class="form-control form-control-sm" wire:model="journal">
                        <option value="achat">Achat</option>
                        <option value="vente">Vente</option>
                        <option value="banque">Banque</option>
                        <option value="caisse">Caisse</option>
                        <option value="od_av">OD Achats - Ventes</option>
                        <option value="od">Operation Diverses</option>
                    </select>
                    <!-- __BLOCK__ --><?php $__errorArgs = ['journal'];
$__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="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-2">
                
                   
                    <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 class="col-md-2">
                
                    <button type="button" wire:click="searchJournal" wire:loading.attr="disabled" class="btn btn-primary btn-sm" style="width: 80%;"> 
                        
                        <div class="spinner-border spinner-border-sm"  role="status" wire:loading wire:target="searchJournal">
                            <span class="visually-hidden"></span>
                        </div>
        
                        <div wire:loading.remove wire:target="searchJournal">
                            Afficher 
                        </div>
                    </button>
                
            </div>
            <div class="col-md-2">
             
                    <button type="button" wire:click="OpenSaisieJournal" class="btn btn-outline-primary btn-sm" > 
                        Saisie journal
                    </button>
            
            </div>
        </div>
    </form>

    <hr>

    <div class="table-responsive">
        <table id="table" class="table-striped mb-2" border="1" style="width:100%; font-size:0.8rem;">
            <thead>
                
                <!-- __BLOCK__ --><?php if($list_data): ?>

                    <!-- __BLOCK__ --><?php if($group == 'av'): ?>
                    <tr>
                        <th class="pl-1" style="width: 10%;">Date</th>
                        <th class="pl-1" style="width: 10%;">Référence</th>
                        <th class="pl-1" >Libellé</th>
                        <th class="pl-1" >Désignation</th>
                        <td align="center" style="width: 15%;" ><b>Montant</b></td>
                        <td align="center" style="width: 6%;" ><b>Devise</b></td>
                        <th align="center" style="width: 8%;"></th>
                    </tr>
                    <?php endif; ?> <!-- __ENDBLOCK__ -->

                    <!-- __BLOCK__ --><?php if($group == 'bc'): ?>
                    <tr>
                        <th class="pl-1" style="width: 10%;">Date</th>
                        <th class="pl-1">Libellé</th>
                        <th class="pl-1">Désignation</th>
                        <td align="center" style="width: 15%;" ><b>Montant</b></td>
                        <td align="center" style="width: 6%;" ><b>Devise</b></td>
                        <th align="center" style="width: 8%;"></th>
                    </tr>
                    <?php endif; ?> <!-- __ENDBLOCK__ -->

                    <!-- __BLOCK__ --><?php if($group == 'od_av'): ?>
                    <tr>
                        <th class="pl-1" style="width: 10%;">Date</th>
                        <th class="pl-1">Libellé</th>
                        <th class="pl-1">Désignation</th>
                        <th class="pl-1">Justification</th>
                        <td align="center" style="width: 15%;" ><b>Montant</b></td>
                        <td align="center" style="width: 6%;" ><b>Devise</b></td>
                        <td align="center" style="width: 50%;" ><b></b></td>
                        <th align="center" style="width: 8%;"></th>
                    </tr>
                    <?php endif; ?> <!-- __ENDBLOCK__ -->

                    <!-- __BLOCK__ --><?php if($group == 'od'): ?>
                    <tr>
                        <th class="pl-1" style="width: 10%;">Date</th>
                        <th class="pl-1">Libellé</th>
                        <th class="pl-1">Justification</th>
                        <td align="center" style="width: 15%;" ><b>Montant</b></td>
                        <td align="center" style="width: 6%;" ><b>Devise</b></td>
                        <th align="center" style="width: 8%;"></th>
                    </tr>
                    <?php endif; ?> <!-- __ENDBLOCK__ -->

                <?php endif; ?> <!-- __ENDBLOCK__ -->
            </thead>
            <tbody>
               
                <!-- __BLOCK__ --><?php $__empty_1 = true; $__currentLoopData = $list_data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>

                    <!-- __BLOCK__ --><?php if($group == 'av'): ?>
                        <tr>
                            <td class="pl-1" ><?php echo e(get_format_date($data->date_valeur)); ?></td>
                            <td class="pl-1"><?php echo e($data->ref_facture); ?></td> 
                            <td class="pl-1"><?php echo e($data->intitule); ?></td>
                            <td class="pl-1"><?php echo e($data->denomination); ?></td>
                            <td align="right"><?php echo e(get_format_montant($data->montant)); ?></td>
                            <td align="center"><?php echo e($data->devise); ?></td>
                            <td align="center"><a class="text-primary" style="cursor:pointer;"
                            wire:click="$dispatch('showDetail',[<?php echo e($data->id); ?>])" ><i class="dw dw-eye"></i> détail </a
                            ></td>
                        </tr>
                    <?php endif; ?> <!-- __ENDBLOCK__ -->


                    <!-- __BLOCK__ --><?php if($group == 'bc'): ?>
                        <tr>
                            <td class="pl-1" ><?php echo e(get_format_date($data->date_valeur)); ?></td>
                            <td class="pl-1"><?php echo e($data->intitule); ?></td>
                            <td class="pl-1"><?php echo e($data->denomination); ?></td>
                            <td align="right"><?php echo e(get_format_montant($data->montant)); ?></td>
                            <td align="center"><?php echo e($data->devise); ?></td>
                            <td align="center"><a class="text-primary" style="cursor:pointer;"
                            wire:click="$dispatch('showDetail',[<?php echo e($data->id); ?>])" ><i class="dw dw-eye"></i> détail</a
                            ></td>
                        </tr>
                    <?php endif; ?> <!-- __ENDBLOCK__ -->

                    <!-- __BLOCK__ --><?php if($group == 'od_av'): ?>
                        <tr>
                            <td class="pl-1" ><?php echo e(get_format_date($data->date_valeur)); ?></td>
                            <td class="pl-1"><?php echo e($data->intitule); ?></td>
                            <td class="pl-1"><?php echo e($data->denomination); ?></td>
                            <td class="pl-1"><?php echo e($data->justification); ?></td>
                            <td align="right"><?php echo e(get_format_montant($data->montant)); ?></td>
                            <td align="center"><?php echo e($data->devise); ?></td>
                            <td align="center">
                                <iframe src="<?php echo e(asset($data->file_justif)); ?>" width="100%" height="100%">

                                    Télécharger le PDF
                                    
                                    </iframe>
                                </td>

                            <td align="center"><a class="text-primary" style="cursor:pointer;"
                            wire:click="$dispatch('showDetail',[<?php echo e($data->id); ?>])" ><i class="dw dw-eye"></i> détail</a
                            ></td>
                        </tr>
                    <?php endif; ?> <!-- __ENDBLOCK__ -->

                    <!-- __BLOCK__ --><?php if($group == 'od'): ?>
                        <tr>
                            <td class="pl-1"><?php echo e(get_format_date($data->date_valeur)); ?></td>
                            <td class="pl-1"><?php echo e($data->intitule); ?></td>
                            <td class="pl-1"><?php echo e($data->justification); ?></td>
                            <td align="right"><?php echo e(get_format_montant($data->montant)); ?></td>
                            <td align="center"><?php echo e($data->devise); ?></td>
                            <td align="center"><a class="text-primary" style="cursor:pointer;"
                            wire:click="$dispatch('showDetail',[<?php echo e($data->id); ?>])" ><i class="dw dw-eye"></i> détail</a
                            ></td>
                        </tr>
                    <?php endif; ?> <!-- __ENDBLOCK__ -->
    
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <tr>
                        <td colspan="7" align="center">Aucune donnée trouvée</td>
                    </tr>
                <?php endif; ?> <!-- __ENDBLOCK__ -->
            </tbody>
        </table>
        <?php echo e($list_data->links()); ?>

    </div>
</div>
<?php /**PATH D:\laravel_apps\big-manager\resources\views/livewire/journaux-comptable.blade.php ENDPATH**/ ?>