<div class="">
    <div class="page-title">
        <div class="title_left">
            <h3>Temario</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>Consultar un temario</h2>
                    <div class="clearfix"></div>
                </div>
                <div class="x_content">
                    <form id="form-nueva" data-parsley-validate class="form-horizontal form-label-left"
                        enctype="multipart/form-data">
                        <div class="mb-1 row">
                            <div class="control-form-label col-md-4 col-sm-4 col-xs-12 text-left text-sm-right">
                                <label class="text-sm-left" for="materia">Materia <span
                                        class="required">*</span>
                                </label>
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                <select id="materia" name="materia" required="required" class="form-control" disabled>
                                    <option value="<?php echo e($tem->materia->cve_mat); ?>"><?php echo e($tem->materia->nom_mat); ?>

                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="mb-1 row">
                            <div class="control-form-label col-md-4 col-sm-4 col-xs-12 text-left text-sm-right">
                                <label class="text-sm-left" for="horasT">Horas
                                    teóricas <span class="required">*</span>
                                </label>
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                <input type="text" id="horasT" name="horasT" required="required" class="form-control"
                                    value="<?php echo e($tem->horasTeoricas_tem); ?>" disabled>
                            </div>
                        </div>
                        <div class="mb-1 row">
                            <div class="control-form-label col-md-4 col-sm-4 col-xs-12 text-left text-sm-right">
                                <label class="text-sm-left" for="horasP">Horas
                                    practicas <span class="required">*</span>
                                </label>
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                <input type="text" id="horasP" name="horasP" required="required" class="form-control"
                                    value="<?php echo e($tem->horasPracticas_tem); ?>" disabled>
                            </div>
                        </div>
                        <div class="mb-1 row">
                            <div class="control-form-label col-md-4 col-sm-4 col-xs-12 text-left text-sm-right">
                                <label class="text-sm-left" for="totalH">Total
                                    de horas <span class="required">*</span>
                                </label>
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                <input type="text" id="totalH" name="totalH" required="required" class="form-control"
                                    value="<?php echo e($tem->totalHoras_tem); ?>" disabled>
                            </div>
                        </div>
                        <div class="mb-1 row">
                            <div class="control-form-label col-md-4 col-sm-4 col-xs-12 text-left text-sm-right">
                                <label class="text-sm-left" for="clave">Clave
                                    <span class="required">*</span>
                                </label>
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                <input type="text" id="clave" name="clave" required="required" class="form-control"
                                    value="<?php echo e($tem->materia->clave_mat); ?>" disabled>
                            </div>
                        </div>
                        <div class="mb-1 row">
                            <div class="control-form-label col-md-4 col-sm-4 col-xs-12 text-left text-sm-right">
                                <label class="text-sm-left" for="competenciasdesa">Competencias
                                    a desarrollar <span class="required">*</span>
                                </label>
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                <textarea class="form-control" id="competenciasdesa" name="competenciasdesa" rows="3" style="resize: none"
                                    disabled><?php echo e($tem->competenciasDes_tem); ?></textarea>
                            </div>
                        </div>
                        <div class="mb-1 row">
                            <div class="control-form-label col-md-4 col-sm-4 col-xs-12 text-left text-sm-right">
                                <label class="text-sm-left" for="competenciaspre">Competencias
                                    previas <span class="required">*</span>
                                </label>
                            </div>
                            <div class="col-md-4 col-sm-4 col-xs-12">
                                <textarea class="form-control" id="competenciaspre" name="competenciaspre" rows="3" style="resize: none"
                                    disabled><?php echo e($tem->competenciasPre_tem); ?></textarea>
                            </div>
                        </div>
                        <div id="contenedor_unidades">
                            <div class="">
                                <table id="tabla" class="table table-striped jambo_table bulk_action">
                                    <thead>
                                        <tr>
                                            <td>
                                                <center>No. Unidad</center>
                                            </td>
                                            <td>
                                                <center>Tema</center>
                                            </td>
                                            <td>
                                                <center>Subtema</center>
                                            </td>
                                        </tr>
                                    </thead>
                                    <tbody id="contenedor_reng">

                                        <?php $__currentLoopData = $uni; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $u): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <tr class="row_unidades" id="rowunidad_1">
                                                <td data-label="No. Unidad: " class="u">
                                                    <?php echo e($u->unidad->no_uni); ?>

                                                </td>
                                                <td data-label="Tema" class="t">
                                                    <?php echo e($u->unidad->tema_uni); ?></td>
                                                <td data-label="Subtema: " class="s">
                                                    <ol class="row_subtemas" id="subT_'rowunidad_1'">

                                                        <?php
                                                        $cadTex = '';
                                                        $banderaP = false;
                                                        $banderaE = false;
                                                        $cadena = $u->unidad->subtema_uni;
                                                        for ($i = 0; $i < strlen($cadena); $i++) {
                                                            if (substr($cadena, $i, 1) == '.') {
                                                                $banderaP = true;
                                                            } else {
                                                                if (substr($cadena, $i, 1) == ' ' && $banderaP) {
                                                                    $banderaE = true;
                                                                } else {
                                                                    if (intval(substr($cadena, $i, 1)) >= 0 && intval(substr($cadena, $i, 1)) <= 9 && $banderaE) {
                                                                        $cadTex .= '<br>';
                                                                        $banderaE = false;
                                                                        $banderaP = false;
                                                                    } else {
                                                                        $banderaE = false;
                                                                        $banderaP = false;
                                                                    }
                                                                }
                                                            }
                                                            $cadTex .= substr($cadena, $i, 1);
                                                        }
                                                        echo $cadTex;
                                                        ?>
                                                    </ol>
                                                </td>
                                            </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <br>
                        <div class="x_title">
                            <h2>Actividades de aprendizaje</h2>
                            <div class="clearfix"></div>
                        </div>
                        <div id="contenedor_competencias">
                            <div class="">
                                <table id="tabla" class="table table-striped jambo_table bulk_action">
                                    <thead>
                                        <tr>
                                            <td>
                                                <center>No. Unidad</center>
                                            </td>
                                            <td>
                                                <center>Competencia Especifica</center>
                                            </td>
                                            <td>
                                                <center>Competencia Genérica</center>
                                            </td>
                                        </tr>
                                    </thead>
                                    <tbody id="contenedor_reng">
                                        <?php $__currentLoopData = $act; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $a): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <tr class="row_unidades" id="rowunidad_1">
                                                <td data-label="No. Unidad: " class="u">
                                                    <?php echo e($a->ActividadAprendizaje->nou_actapre); ?></td>
                                                <td data-label="Competencia Especifica: " class="t">
                                                    <?php echo e($a->ActividadAprendizaje->competenciaEsp_actapre); ?>

                                                </td>
                                                <td data-label="Competencia Genérica: " class="s">
                                                    <ol class="row_subtemas" id="subT_'rowunidad_1'">
                                                        <?php echo e($a->ActividadAprendizaje->competenciaGen_actapre); ?>

                                                    </ol>
                                                </td>
                                            </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <div class="ln_solid"></div>
                        <div class="mb-1 row">
                            <div class="col-md-3 col-sm-12"></div>
                            <div class="col-md-6 col-sm-12">
                                <div class="row">
                                    <div class="col">
                                        <button class="btn btn-outline-dark btn-block" type="button"
                                            onclick="listado_temario()"><i class="fa far fa-reply"></i>
                                            Regresar</button>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-3 col-sm-12"></div>
                        </div>

                    </form>
                    <br>
                </div>
            </div>
        </div>
    </div>
</div>
<?php /**PATH C:\xampp\htdocs\laravel_curso\laravel_7_curso\resources\views/temario/consultar.blade.php ENDPATH**/ ?>