
<div >



    <div  wire:ignore.self
    class="modal fade bs-example-modal-lg"
    id="DetailTransactionModal"
    tabindex="-1"
    role="dialog"
    aria-labelledby="TransactionModal"
    aria-hidden="true"
>
    <div class="modal-dialog modal-lg modal-dialog-centered">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="TransactionModal">
                    Détails
                </h4>
                <button
                    type="button"
                    class="close"
                    data-dismiss="modal"
                    aria-hidden="true"
                >
                    ×
                </button>
            </div>
            <div class="modal-body">
                <?php
                    $n = ($is_facture) ? 7 : 5 ;
                ?>
                <div class="table-responsive">
                    <table  class="table-sm table-striped" style="width:100%; font-size:15px;">
                        <thead>
                            <tr>
                                <th colspan="<?php echo e($n); ?>"><?php echo e($this->title_detail); ?></th>
                            </tr>
                            <!-- __BLOCK__ --><?php if($list_data_detail): ?>

                                <!-- __BLOCK__ --><?php if($is_facture): ?>
                                    <tr>
                                        <td >Dénomination</td>
                                        <td >Date</td>
                                        <td >Libellé</td>
                                        <td >N° Facture</td>
                                        <td align="right">Montant</td>
                                        <td align="right"> Solde</td>
                                        <td >Devise</td>
                                    </tr>
                                <?php else: ?>
                                    <tr>
                                        <td >Compte</td>
                                        <td >Intitulé</td>
                                        <td align="right">Débit</td>
                                        <td align="right"> Crédit</td>
                                        <td >Devise</td>
                                    </tr>
                                <?php endif; ?> <!-- __ENDBLOCK__ -->
                            <?php endif; ?> <!-- __ENDBLOCK__ -->
                        </thead>
                        <tbody>
                           
                            <!-- __BLOCK__ --><?php $__empty_1 = true; $__currentLoopData = $list_data_detail; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>

                                <!-- __BLOCK__ --><?php if($is_facture): ?>
                                    <tr>
                                        <td ><?php echo e($data->denomination); ?></td>
                                        <td ><?php echo e(get_format_date($data->date_facture)); ?></td>
                                        <td ><?php echo e($data->intitule); ?></td>
                                        <td><?php echo e($data->num_facture); ?></td>
                                        <td align="right"><?php echo e(get_format_montant($data->montant)); ?></td>
                                        <td align="right"><?php echo e(get_format_montant($data->solde)); ?></td> 
                                        <td><?php echo e($data->devise); ?></td>
                                    </tr>
                                <?php else: ?>
                                    <tr>
                                        <td ><?php echo e($data->fk_num_compte); ?></td>
                                        <td><?php echo e($data->nom_compte); ?></td>
                                        <td align="right"><?php echo e(get_format_montant($data->debit)); ?></td>
                                        <td align="right"><?php echo e(get_format_montant($data->credit)); ?></td> 
                                        <td><?php echo e($data->devise); ?></td>
                                    </tr>
                                <?php endif; ?> <!-- __ENDBLOCK__ -->
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                <tr>
                                    <td colspan="5" align="center">Aucune donnée trouvée</td>
                                </tr>
                            <?php endif; ?> <!-- __ENDBLOCK__ -->
                            
                            
                        </tbody>
                    </table>
                </div>
            </div>
<div class="modal-footer">
    <button
        type="button"
        class="btn btn-secondary"
        data-dismiss="modal"
    >
         Close
    </button>
</div>
</div>
</div>
</div>


    <form >
        <div class="row mb-1">
            <div class="col-md-4">
                <?php echo e($type_journal); ?> 
            </div>
            <div class="col-md-3">
                    <input type="date"  class="form-control form-control-sm <?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]); ?> form-control-danger <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" wire:model="date_start" >
            </div>
            <div class="col-md-3">
                    <input type="date"  class="form-control form-control-sm <?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]); ?> form-control-danger <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" wire:model="date_end" >
            </div>
            <div class="col-md-2">
                
                    <button type="button" wire:click="doSearch"  class=" bt-sm" style="width:100%; height:30px; "> 
                       recherche
                    </button>
               
            </div>
        </div>
    </form>
   
    <div class="row"> 
 
         <div class="col-md-1">
             <div class="input-group custom ">
                 <select wire:model.live="ligne"   class="form-control form-control-sm"  >
                     <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>
         <div class="col-md-6 offset-md-5">
             <div class="input-group custom ">
                     <input
                         type="text"
                         class="form-control form-control-sm"
                         placeholder="recherche"
                         id="_filter"
                         wire:model.live="search"
                     />
                     <div class="input-group-append custom">
                         <span class="input-group-text"
                             ><i class="icon-copy dw dw-search"></i
                         ></span>
                     </div>
             </div>
         </div>
     </div>
 
     <div  class="table-responsive">
     <table id="table" class="table-striped mb-2" border="1" style="width:100%; font-size:15px;">
         
         <thead>
            <!-- __BLOCK__ --><?php if($group == 'av'): ?>
            <tr>
                <th scope="col">Date</th>
                <th scope="col">Libellé</th>
                <th scope="col">Dénomination</th>
                <th scope="col">Num Facture</th>
                <th scope="col">Montant</th>
                <th scope="col"></th>
            </tr>
            <?php endif; ?> <!-- __ENDBLOCK__ -->

            <!-- __BLOCK__ --><?php if($group == 'bc'): ?>
            <tr>
                <th scope="col">Date</th>
                <th scope="col">Libellé</th>
                <th scope="col">Montant</th>
                <th scope="col">Devise</th>
                <th scope="col">Dénomination</th>
                <th scope="col"></th>
            </tr>
            <?php endif; ?> <!-- __ENDBLOCK__ -->

            <!-- __BLOCK__ --><?php if($group == 'od'): ?>
            <tr>
                <th scope="col">Date</th>
                <th scope="col">Libellé</th>
                <th scope="col">Montant</th>
                <th scope="col">Devise</th>
                <th scope="col">Justification</th>
                <th scope="col"></th>
            </tr>
            <?php endif; ?> <!-- __ENDBLOCK__ -->
         </thead>
         <tbody>
             <?php
                 $n = 1;
             ?>
                 <!-- __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 ><?php echo e(get_format_date($data->date_valeur)); ?></td>
                         <td><?php echo e($data->intitule); ?></td>
                         <td><?php echo e($data->denomination); ?></td>
                         <td><?php echo e($data->num_facture); ?></td> 
                         <td align="right" class="pr-1"><?php echo e(get_format_montant($data->montant)); ?> <?php echo e($data->devise); ?></td>
                         <td align="center"><a class="text-primary" style="cursor:pointer;"
                         wire:click="showDetail(<?php echo e($data->id); ?>)" ><i class="dw dw-eye"></i> show</a
                         ></td>
                     </tr>
                 <?php endif; ?> <!-- __ENDBLOCK__ -->


                 <!-- __BLOCK__ --><?php if($group == 'bc'): ?>
                     <tr>
                         <td ><?php echo e(get_format_date($data->date_valeur)); ?></td>
                         <td><?php echo e($data->intitule); ?></td>
                         <td><?php echo e(get_format_montant($data->montant)); ?></td>
                         <td><?php echo e($data->devise); ?></td>
                         <td><?php echo e($data->denomination); ?></td>
                         <td><a class="text-primary" style="cursor:pointer;"
                         wire:click="showDetail(<?php echo e($data->id); ?>)" ><i class="dw dw-eye"></i> show</a
                         ></td>
                     </tr>
                 <?php endif; ?> <!-- __ENDBLOCK__ -->

                 <!-- __BLOCK__ --><?php if($group == 'od'): ?>
                     <tr>
                         <td ><?php echo e(get_format_date($data->date_valeur)); ?></td>
                         <td><?php echo e($data->intitule); ?></td>
                         <td><?php echo e(get_format_montant($data->montant)); ?></td>
                         <td><?php echo e($data->devise); ?></td>
                         <td><?php echo e($data->justification); ?></td>
                         <td><a class="text-primary" style="cursor:pointer;"
                         wire:click="showDetail(<?php echo e($data->id); ?>)" ><i class="dw dw-eye"></i> show</a
                         ></td>
                     </tr>
                 <?php endif; ?> <!-- __ENDBLOCK__ -->
 
             <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                 <tr>
                    <td colspan="7" align="center" class="text-danger">Aucune donnée trouvée pour la periode allant de 
                                    <b><?php echo e(get_format_date($date_start,"L")); ?></b> au 
                                    <b><?php echo e(get_format_date($date_end,"L")); ?></b>
                    </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/saisie-journaux-table.blade.php ENDPATH**/ ?>