


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


<!-- Content Header (Page header) -->
<div class="content-header">
    <div class="container-fluid">
      <div class="row mb-2">
        <div class="col-sm-6">
          <h1 class="m-0">Lista de equipos</h1>
        </div><!-- /.col -->
        <div class="col-sm-6">
          <ol class="breadcrumb float-sm-right">
            <li class="breadcrumb-item"><a href="#">Home</a></li>
            <li class="breadcrumb-item active">Dashboard v2</li>
          </ol>
        </div><!-- /.col -->
      </div><!-- /.row -->
    </div><!-- /.container-fluid -->
  </div>
  <!-- /.content-header -->

  <!-- Main content -->
  <section class="content">
    <div class="container-fluid">
        <div class="row">
          <!-- left column -->
          <div class="col-12">
            <div class="card">
              <div class="card-header">
                <h3 class="card-title">Listado de equipos</h3>
                <a href="<?php echo e(route('NuevoEquipo')); ?>" class="btn btn-success float-right">Crear nuevo</a>
              </div>
              <!-- /.card-header -->
              <div class="card-body">
                <table id="dtListaEquipos" class="table table-bordered table-sm">
                  <thead>
                    <tr>
                      <th>T. Equipo</th>
                      <th>Marca</th>
                      <th>Modelo</th>
                      <th>Serie</th>
                      <th>¿Asignado?</th>
                      <th>Acción</th>
                    </tr>
                  </thead>
                  <tbody>
                    <?php $__currentLoopData = $equipos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($item->equi_nombreTipoEquipo); ?></td>
                            <td><?php echo e($item->equi_marcaNombre); ?></td>
                            <td><?php echo e($item->equi_modelo); ?></td>                          
                            <td><?php echo e($item->equi_serie); ?></td>
                            <td class="<?php echo e($item->equi_estadoAsigando  == 'LIBRE' ? 'text-success' : ''); ?>"><?php echo e($item->equi_estadoAsigando); ?></td>                            
                            <td><a class="btn btn-info btn-sm" href="<?php echo e(route('CargarEquipos', $item->equi_id)); ?>"><i class="fas fa-pencil-alt"></i> Editar</a></td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                  </tbody>
                </table>
              </div>
              <!-- /.card-body -->
              
            </div>
            <!-- /.card -->
       
     
        </div><!--/. end row -->
        </div><!--/. end col -->
        </div><!--/. container-fluid -->
  </section>
  <!-- /.content -->

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


  <?php $__env->startSection('librerias'); ?>
  <!-- JS PROPIAS DE LA VISTA-->
  <script src="<?php echo e(asset('assets/js/myfunctions/equipo.js')); ?>"></script>
  <!-- DataTables  & Plugins -->
  <script src="<?php echo e(asset('assets/plugins/datatables/jquery.dataTables.min.js')); ?>"></script>
  <script src="<?php echo e(asset('assets/plugins/datatables-bs4/js/dataTables.bootstrap4.min.js')); ?>"></script>
  <script src="<?php echo e(asset('assets/plugins/datatables-responsive/js/dataTables.responsive.min.js')); ?>"></script>
  <script src="<?php echo e(asset('assets/plugins/datatables-responsive/js/responsive.bootstrap4.min.js')); ?>"></script>
  <script src="<?php echo e(asset('assets/plugins/datatables-buttons/js/dataTables.buttons.min.js')); ?>"></script>
  <script src="<?php echo e(asset('assets/plugins/datatables-buttons/js/buttons.bootstrap4.min.js')); ?>"></script>
  <script src="<?php echo e(asset('assets/plugins/jszip/jszip.min.js')); ?>"></script>
  <script src="<?php echo e(asset('assets/plugins/pdfmake/pdfmake.min.js')); ?>"></script>
  <script src="<?php echo e(asset('assets/plugins/pdfmake/vfs_fonts.js')); ?>"></script>
  <script src="<?php echo e(asset('assets/plugins/datatables-buttons/js/buttons.html5.min.js')); ?>"></script>
  <script src="<?php echo e(asset('assets/plugins/datatables-buttons/js/buttons.print.min.js')); ?>"></script>
  <script src="<?php echo e(asset('assets/plugins/datatables-buttons/js/buttons.colVis.min.js')); ?>"></script>  

    <script>
/************************************************************************************
* Funcionamiento de datatables --> equipoLista.blade.php
*************************************************************************************/
$(function () {
    $("#dtListaEquipos").DataTable({
      "responsive": true, "lengthChange": false, "autoWidth": false,
      "ordering": false,
      "pageLength": 25,
      "buttons": ["copy", "csv", "excel", "pdf", "print"],
      "language": {
        "search": "Buscar:"
    }
    
    }).buttons().container().appendTo('#dtListaEquipos_wrapper .col-md-6:eq(0)');
})
</script>   
    
  <?php $__env->stopSection(); ?>
<?php echo $__env->make('plantilla', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\Codigo\resources\views/equipoLista.blade.php ENDPATH**/ ?>