<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($updateBdd): ?>
    <div class="bg-secondary width-1px height-1px text-white text-center mx-25">Update Item</div>
      <?php echo $__env->make('livewire.tpm.bdd.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-center my-2 text-white " role="button">Add New Item</a>
    <!--[if BLOCK]><![endif]--><?php if($createItem): ?>
    <div class="bg-secondary width-1px height-1px text-white text-center mx-25">New Item</div>
      <?php echo $__env->make('livewire.tpm.bdd.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">Database-List</div>
    <div class="card my-4">
        <input class ="input" type="text" placeholder="Search" wire:model.debounce.800ms.live="search">
    </div>
    <div class="col mx-25">
        <table class="table table-striped table-hover ">
            <thead>
              <tr>
                
                <th >Item</th>
                <th >Ip</th>
                <th >Login</th>
                <th >Password</th>
                
              </tr>
            </thead>
            <tbody>
                <!--[if BLOCK]><![endif]--><?php $__currentLoopData = $databases; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
              <tr>
                
                <td><?php echo e($data->item); ?></td>
                <td><?php echo e($data->ip); ?></td>
                <td><?php echo e($data->login); ?></td>
                <td><?php echo e($data->pass); ?></td>
                <td>
                    <a
                    href="#"wire:click="edit(<?php echo e($data->id); ?>)"
                    class="btn btn-secondary">Edit</a>
                    
                    <a href="#" wire:click="delete(<?php echo e($data->id); ?>)"
                    class="btn btn-danger">Delete</a>
                  </td>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><!--[if ENDBLOCK]><![endif]-->
                
              </tr>
              </tbody>
              </table>
              <?php echo e($databases->links('livewire.pagination')); ?>

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