
<div class="">
  <div class="page-title">
    <div class="title_left">
      <h3>Materia</h3>
    </div>
  </div>

  <div class="clearfix"></div>

  <div class="row">
    <div class="col-md-12 col-sm-12 col-xs-12">
      <div class="x_panel">
        <div class="x_title">
          <h2>Listado de Materias</h2>
          <div class="clearfix"></div>
        </div>
        <div class="x_content">

            <?php echo $__env->make('materias.filtro',['carreras'=>$carreras,'data'=>$data], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>;

            <div class="table-responsive">
                <table class="table table-striped jambo_table bulk_action">
                    <thead>
                        <tr class="headings">
                            <th class="column-title">No.</th>
                            <th class="column-title">Nombre </th>
                            <th class="column-title">Clave </th>
                            <th class="column-title">Horas Teoricas </th>
                            <th class="column-title">Horas Practicas </th>
                            <th class="column-title">Total de Horas </th>
                            <td class=" ">Carrera</td>
                            <th class="column-title no-link last"><span class="nobr">Action</span>
                            </th>
                            <th class="bulk-actions" colspan="7">
                                <a class="antoo" style="color:#fff; font-weight:500;">Bulk Actions ( <span class="action-cnt"> </span> ) <i class="fa fa-chevron-down"></i></a>
                            </th>
                        </tr>
                    </thead>

                    <tbody>
                     
                      <?php $__currentLoopData = $materia; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $m): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr class="even pointer">
                            <td class="a-center "><?php echo e($loop->iteration); ?></td>
                            <td class=" "><?php echo e($m->nombre); ?></td>
                            <td class=" "><?php echo e($m->clave); ?></td>
                            <td class=" "><?php echo e($m->horas_teoricas); ?></td>
                            <td class=" "><?php echo e($m->horas_practicas); ?></td>
                            <td class=" "><?php echo e($m->total_horas); ?></td>
                            <td class=" ">
                            <?php $__currentLoopData = $m->MateriasCarreras; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $mc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                              <?php echo e($mc->carrera->nombre); ?> <br>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </td>
                            
                            <td class=" ">
                              <button class="btn btn-info btn-xs" type="button" title="Consultar Materia" onclick="consultar_materia(<?php echo e($m->id); ?>);"><span class="fa fa-eye"></span></button>
                              <button class="btn btn-warning btn-xs" type="button" title="Editar Materia" onclick="modificar_materia(<?php echo e($m->id); ?>);"><span class="fa fa-eyedropper"></span></button>
                              <button class="btn btn-danger btn-xs" type="button" title="Eliminar Materia" onclick="delete_materia(<?php echo e($m->id); ?>);"><span class="fa fa-trash-o"></span></button>
                              <button class="btn btn-success btn-xs" type="button" title="Agregar Unidad" onclick="temario(<?php echo e($m->id); ?>);"><span class="fa fa-book"></span></button>

                            </td>
                        </tr>
                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
            </div>
        </div>
      </div>
    </div>
  </div>
</div>
<?php /**PATH C:\xampp\htdocs\laravel_7\resources\views/materias/listar.blade.php ENDPATH**/ ?>