

<?php $__env->startSection('main-content'); ?>

  <div class="container-fluid spark-screen">
    <div class="row">
      <div class="col-md-12 ">
        <div class="box-body">
          <div class="container-fluid spark-screen">
            <div class="row">
              <div class="col-md-12">
                <div class="box box-admin-border">
                  <div class="box-header with-border">
                     <i class="fa fa-code-fork"></i><h3 class="box-title"><b>Tours</b></h3>
                    
                    <a class="btn btn-primary " style="float: right;" href="/tours/create"> <i class="fa fa-plus"></i>Nuevo</a>
                  </div>
                  
                  <div class="box-body responsive-table">

                    <div id="lista_item_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
                      <div class="row">
                        <div class="col-sm-12">
                          <table id="categories" class="display" cellspacing="0" width="100%">
                                <thead>
                                    <tr>
                                      <th>Id</th>
                                      <th>Nombre</th>
                                      <th>Descripción</th>
                                     
                                      <th>Acción</th>
                                    </tr>
                                </thead>
                                <tbody>
                                  <?php $__currentLoopData = $tours; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tur): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                  <tr>
                                    <td><?php echo e($tur->id); ?></td>
                                    <td><?php echo e($tur->name); ?></td>
                                    <td><?php echo e($tur->description); ?></td>
                                    
                                                    
                                      <td>
                                    
                                 
                                      <form role="form" action = "/tours/eliminar/<?php echo e($tur->id); ?>" method="post"  enctype="multipart/form-data">
                                            <?php echo e(method_field('DELETE')); ?>

                                            <?php echo e(csrf_field()); ?>

                                        
                                        <a class="btn btn-sm btn-default" href="/tours/ver/<?php echo e($tur->id); ?>"><i class="fa fa-eye"></i></a>
                                        <a class="btn btn-sm btn-default" href="/tours/edit/<?php echo e($tur->id); ?>"><i class="fa fa-edit"></i></a>

                                        <button onclick='if(confirmDel() == false){return false;}' class="btn btn-sm btn-default" type="submit"><i class="fa fa-trash"></i></button></a>
                                      </form>
                                 

                                      </td>
                                  </tr>
                                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </tbody>
                          </table>
                        </div>
                      </div>
                    </div>
                    <!-- /.box-body -->
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  



<?php $__env->stopSection(); ?>

<?php echo $__env->make('adminlte::layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>