<div >
    <div class="container">
      <div class="  d-flex width-50 justify-content-center btn btn-sm bg-secondary text-center my-2 " >Index-Oi</div>
        <div class="d-flex justify-content-around  ">
            <a href="<?php echo e(route('indexoi-mail')); ?>" class="btn btn-secondary" role="button">Mail</a>
            <a href="<?php echo e(route('indexoi-database')); ?>" class="btn btn-secondary" role="button">Database</a>
            
            
        </div>
        
    </div>
    
    <hr>
    <!--[if BLOCK]><![endif]--><?php if(session()->has('success')): ?>
      <div class="alert alert-success " role = "alert"><?php echo e(session()->get('success')); ?></div>
    <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
  
    
    
    
    <!--[if BLOCK]><![endif]--><?php if($updateMail): ?>
    <div class="bg-secondary width-1px height-1px text-white text-center mx-25">Update Email</div>
      <?php echo $__env->make('livewire.indexoi.mail.update', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
    
    
    <a href="#" wire:click='create()' class="  d-flex width-50 justify-content-center btn btn-sm bg-secondary  text-white text-center my-2 " role="button">Add New Email</a>
    <!--[if BLOCK]><![endif]--><?php if($createEmail): ?>
    <div class="bg-secondary width-1px height-1px text-white text-center mx-25">New Email</div>
      <?php echo $__env->make('livewire.tpm.mail.create', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
    <div class="bg-secondary width-1px height-1px text-white text-center mx-25">Email-List</div>
    
    <div class="card my-4">
        <input class ="input" type="text" placeholder="Search" wire:model.debounce.800ms.live="search">
    </div>
    
    
    
        <table class="table table-striped table-hover ">
            <thead>
              <tr>
                
                <th >Compte</th>
                <th >Password</th>
                
              </tr>
            </thead>
            <tbody>
                <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $mails; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $mail): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
              <tr>
                
                <td><?php echo e($mail->mail); ?></td>
                <td><?php echo e($mail->pass); ?></td>
                <td>
                    
                    <button wire:click="edit(<?php echo e($mail->id); ?>)" class = "btn btn-secondary btn-sm">Edit</button>
                    <button wire:click="delete(<?php echo e($mail->id); ?>)" class = "btn btn-danger btn-sm">Delete</button>
                    
                    
                  </td>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
                
              </tr>
              </tbody>
              </table>
              <?php echo e($mails->links('livewire.pagination')); ?>

</div>
<?php /**PATH C:\xampp\htdocs\matiff\resources\views/livewire/indexoi/mail/indexoimail.blade.php ENDPATH**/ ?>