<?php $__env->startSection('content'); ?>
    <h3>Establecimientos - Detalle</h3>
    <div class="col-md-6">
        <?php echo Form::open(array('url' => 'encuestas/grabar', 'method' => 'post')); ?>

        <table class="table table-hover table-condensed">
            <thead>
              <tr>
                <td>#</td>
                <th>Pregunta</th>
                <th>Puntaje</th>
              </tr>
            </thead>
            <tbody>
                <?php foreach($data as $row): ?>
                <h4>Codigo : <?php echo e($row->idestablec); ?></h4>
                <?php echo Form::token();; ?>

                <?php echo Form::hidden('idrespuesta', $row->idrespuesta);; ?>

                <?php echo Form::hidden('idestablec', $row->idestablec);; ?>

                <tr>
                    <td>1</td>
                    <td>Orden y limpieza</td>
                    <?php /* <td><?php echo Form::text('pregunta1', $value = $row->pregunta1);; ?></td> */ ?>
                    <td class="td_rojo"    ><input type="radio" id="opt1_1" name="opt1" class="custom-control-input" <?php echo e($row->pregunta1===0?"checked":""); ?> value="0" ></td>
                    <td class="td_amarillo"></td>
                    <td class="td_verde"   ><input type="radio" id="opt1_3" name="opt1" class="custom-control-input" <?php echo e($row->pregunta1===2?"checked":""); ?> value="2" ></td>
                </tr>
                <tr>
                    <td>2</td>
                    <td>Tanque elevado</td>
                    <td class="td_rojo"    ><input type="radio" id="opt2_1" name="opt2" class="custom-control-input" <?php echo e($row->pregunta2===0?"checked":""); ?> value="0" ></td>
                    <td class="td_amarillo"></td>
                    <td class="td_verde"   ><input type="radio" id="opt2_3" name="opt2" class="custom-control-input" <?php echo e($row->pregunta2===2?"checked":""); ?> value="2" ></td>
                </tr>
                <tr>
                    <td>3</td>
                    <td>Grupo Electrógeno</td>
                    <td class="td_rojo"    ><input type="radio" id="opt3_1" name="opt3" class="custom-control-input" <?php echo e($row->pregunta3===0?"checked":""); ?> value="0" ></td>
                    <td class="td_amarillo"></td>
                    <td class="td_verde"   ><input type="radio" id="opt3_3" name="opt3" class="custom-control-input" <?php echo e($row->pregunta3===2?"checked":""); ?> value="2" ></td>
                </tr>
                <tr>
                    <td>4</td>
                    <td>Stock de medicamentos</td>
                    <td class="td_rojo"    ><input type="radio" id="opt4_1" name="opt4" class="custom-control-input" <?php echo e($row->pregunta4===0?"checked":""); ?> value="0" ></td>
                    <td class="td_amarillo"></td>
                    <td class="td_verde"   ><input type="radio" id="opt4_3" name="opt4" class="custom-control-input" <?php echo e($row->pregunta4===2?"checked":""); ?> value="2" ></td>
                </tr>
                <tr>
                    <td>5</td>
                    <td>Ambulancia por microred</td>
                    <td class="td_rojo"    ><input type="radio" id="opt5_1" name="opt5" class="custom-control-input" <?php echo e($row->pregunta5===0?"checked":""); ?> value="0" ></td>
                    <td class="td_amarillo"></td>
                    <td class="td_verde"   ><input type="radio" id="opt5_3" name="opt5" class="custom-control-input" <?php echo e($row->pregunta5===2?"checked":""); ?> value="2" ></td>
                </tr>
                <tr>
                    <td>6</td>
                    <td>Supervisión cada 3 meses obligatoria</td>
                    <td class="td_rojo"    ><input type="radio" id="opt6_1" name="opt6" class="custom-control-input" <?php echo e($row->pregunta6===0?"checked":""); ?> value="0" ></td>
                    <td class="td_amarillo"><input type="radio" id="opt6_2" name="opt6" class="custom-control-input" <?php echo e($row->pregunta6===1?"checked":""); ?> value="1" ></td>
                    <td class="td_verde"   ><input type="radio" id="opt6_3" name="opt6" class="custom-control-input" <?php echo e($row->pregunta6===2?"checked":""); ?> value="2" ></td>
                </tr>
                <tr>
                    <td>7</td>
                    <td>Equipos en uso</td>
                    <td class="td_rojo"    ><input type="radio" id="opt7_1" name="opt7" class="custom-control-input" <?php echo e($row->pregunta7===0?"checked":""); ?> value="0" ></td>
                    <td class="td_amarillo"><input type="radio" id="opt7_2" name="opt7" class="custom-control-input" <?php echo e($row->pregunta7===1?"checked":""); ?> value="1" ></td>
                    <td class="td_verde"   ><input type="radio" id="opt7_3" name="opt7" class="custom-control-input" <?php echo e($row->pregunta7===2?"checked":""); ?> value="2" ></td>
                </tr>
                <tr>
                    <td>8</td>
                    <td>Estadisticas VEA</td>
                    <td class="td_rojo"    ><input type="radio" id="opt8_1" name="opt8" class="custom-control-input" <?php echo e($row->pregunta8===0?"checked":""); ?> value="0" ></td>
                    <td class="td_amarillo"></td>
                    <td class="td_verde"   ><input type="radio" id="opt8_3" name="opt8" class="custom-control-input" <?php echo e($row->pregunta8===2?"checked":""); ?> value="2" ></td>
                </tr>
                <tr>
                    <td>9</td>
                    <td>Clima laboral</td>
                    <td class="td_rojo"    ><input type="radio" id="opt9_1" name="opt9" class="custom-control-input" <?php echo e($row->pregunta9===0?"checked":""); ?> value="0"></td>
                    <td class="td_amarillo"></td>
                    <td class="td_verde"   ><input type="radio" id="opt9_3" name="opt9" class="custom-control-input" <?php echo e($row->pregunta9===2?"checked":""); ?> value="2"></td>
                </tr>
                <tr>
                    <td>10</td>
                    <td>Terreno saneado</td>
                    <td class="td_rojo"    ><input type="radio" id="opt10_1" name="opt10" class="custom-control-input" <?php echo e($row->pregunta10===0?"checked":""); ?> value="0"></td>
                    <td class="td_amarillo"></td>
                    <td class="td_verde"   ><input type="radio" id="opt10_3" name="opt10" class="custom-control-input" <?php echo e($row->pregunta10===2?"checked":""); ?> value="2"></td>
                </tr>
                <tr>
                    <td>11</td>
                    <td>Señalectica interna</td>
                    <td class="td_rojo"    ><input type="radio" id="opt11_1" name="opt11" class="custom-control-input" <?php echo e($row->pregunta11===0?"checked":""); ?> value="0"></td>
                    <td class="td_amarillo"></td>
                    <td class="td_verde"   ><input type="radio" id="opt11_3" name="opt11" class="custom-control-input" <?php echo e($row->pregunta11===2?"checked":""); ?> value="2"></td>
                </tr>
                <tr>
                    <td>12</td>
                    <td>Señalectica externa</td>
                    <td class="td_rojo"    ><input type="radio" id="opt12_1" name="opt12" class="custom-control-input" <?php echo e($row->pregunta12===0?"checked":""); ?> value="0"></td>
                    <td class="td_amarillo"></td>
                    <td class="td_verde"   ><input type="radio" id="opt12_3" name="opt12" class="custom-control-input" <?php echo e($row->pregunta12===2?"checked":""); ?> value="2"></td>
                </tr>
                <tr>
                    <td>13</td>
                    <td>Extinguidores</td>
                    <td class="td_rojo"    ><input type="radio" id="opt13_1" name="opt13" class="custom-control-input" <?php echo e($row->pregunta13===0?"checked":""); ?> value="0"></td>
                    <td class="td_amarillo"></td>
                    <td class="td_verde"   ><input type="radio" id="opt13_3" name="opt13" class="custom-control-input" <?php echo e($row->pregunta13===2?"checked":""); ?> value="2"></td>
                </tr>
                <tr>
                    <td>14</td>
                    <td>Cadena de frio</td>
                    <td class="td_rojo"    ><input type="radio" id="opt14_1" name="opt14" class="custom-control-input" <?php echo e($row->pregunta14===0?"checked":""); ?> value="0"></td>
                    <td class="td_amarillo"></td>
                    <td class="td_verde"   ><input type="radio" id="opt14_3" name="opt14" class="custom-control-input" <?php echo e($row->pregunta14===2?"checked":""); ?> value="2"></td>
                </tr>
                </tr>
                <tr>
                    <td>15</td>
                    <td>Lugar de desechos</td>
                    <td class="td_rojo"    ><input type="radio" id="opt15_1" name="opt15" class="custom-control-input" <?php echo e($row->pregunta15===0?"checked":""); ?> value="0"></td>
                    <td class="td_amarillo"></td>
                    <td class="td_verde"   ><input type="radio" id="opt15_3" name="opt15" class="custom-control-input" <?php echo e($row->pregunta15===2?"checked":""); ?> value="2"></td>
                </tr>
                <tr>
                    <td>16</td>
                    <td>Cumplimiento de ...</td>
                    <td class="td_rojo"    ><input type="radio" id="opt16_1" name="opt16" class="custom-control-input" <?php echo e($row->pregunta16===0?"checked":""); ?> value="0"></td>
                    <td class="td_amarillo"><input type="radio" id="opt16_2" name="opt16" class="custom-control-input" <?php echo e($row->pregunta16===1?"checked":""); ?> value="1"></td>
                    <td class="td_verde"   ><input type="radio" id="opt16_3" name="opt16" class="custom-control-input" <?php echo e($row->pregunta16===2?"checked":""); ?> value="2"></td>
                </tr>
                <tr>
                    <td>17</td>
                    <td>SIS operativo</td>
                    <td class="td_rojo"    ><input type="radio" id="opt17_1" name="opt17" class="custom-control-input" <?php echo e($row->pregunta17===0?"checked":""); ?> value="0"></td>
                    <td class="td_amarillo"></td>
                    <td class="td_verde"   ><input type="radio" id="opt17_3" name="opt17" class="custom-control-input" <?php echo e($row->pregunta17===2?"checked":""); ?> value="2"></td>
                </tr>
                <tr>
                    <td>18</td>
                    <td>Radares y mapas</td>
                    <td class="td_rojo"    ><input type="radio" id="opt18_1" name="opt18" class="custom-control-input" <?php echo e($row->pregunta18===0?"checked":""); ?> value="0"></td>
                    <td class="td_amarillo"></td>
                    <td class="td_verde"   ><input type="radio" id="opt18_3" name="opt18" class="custom-control-input" <?php echo e($row->pregunta18===2?"checked":""); ?> value="2"></td>
                </tr>
                <tr>
                    <td>19</td>
                    <td>Libro de reclamaciones</td>
                    <td class="td_rojo"    ><input type="radio" id="opt19_1" name="opt19" class="custom-control-input" <?php echo e($row->pregunta19===0?"checked":""); ?> value="0"></td>
                    <td class="td_amarillo"><input type="radio" id="opt19_2" name="opt19" class="custom-control-input" <?php echo e($row->pregunta19===1?"checked":""); ?> value="1"></td>
                    <td class="td_verde"   ><input type="radio" id="opt19_3" name="opt19" class="custom-control-input" <?php echo e($row->pregunta19===2?"checked":""); ?> value="2"></td>
                </tr>
                <tr>
                    <td>20</td>
                    <td>Coche de paso</td>
                    <td class="td_rojo"    ><input type="radio" id="opt20_1" name="opt20" class="custom-control-input" <?php echo e($row->pregunta20===0?"checked":""); ?> value="0"></td>
                    <td class="td_amarillo"></td>
                    <td class="td_verde"   ><input type="radio" id="opt20_3" name="opt20" class="custom-control-input" <?php echo e($row->pregunta20===2?"checked":""); ?> value="2"></td>
                </tr>
                <tr>
                    <td>21</td>
                    <td>Radar de la red</td>
                    <td class="td_rojo"    ><input type="radio" id="opt21_1" name="opt21" class="custom-control-input" <?php echo e($row->pregunta21===0?"checked":""); ?> value="0"></td>
                    <td class="td_amarillo"></td>
                    <td class="td_verde"   ><input type="radio" id="opt21_3" name="opt21" class="custom-control-input" <?php echo e($row->pregunta21===2?"checked":""); ?> value="2"></td>
                </tr>
                <tr>
                    <td>22</td>
                    <td>SIGA Patrimonial</td>
                    <td class="td_rojo"    ><input type="radio" id="opt22_1" name="opt22" class="custom-control-input" <?php echo e($row->pregunta22===0?"checked":""); ?> value="0"></td>
                    <td class="td_amarillo"></td>
                    <td class="td_verde"   ><input type="radio" id="opt22_3" name="opt22" class="custom-control-input" <?php echo e($row->pregunta22===2?"checked":""); ?> value="2"></td>
                </tr>
                <tr>
                    <td>23</td>
                    <td>Categorización</td>
                    <td class="td_rojo"    ><input type="radio" id="opt23_1" name="opt23" class="custom-control-input" <?php echo e($row->pregunta23===0?"checked":""); ?> value="0"></td>
                    <td class="td_amarillo"></td>
                    <td class="td_verde"   ><input type="radio" id="opt23_3" name="opt23" class="custom-control-input" <?php echo e($row->pregunta23===2?"checked":""); ?> value="2"></td>
                </tr>
                <tr>
                    <td>24</td>
                    <td>Acreditación</td>
                    <td class="td_rojo"    ><input type="radio" id="opt24_1" name="opt24" class="custom-control-input" <?php echo e($row->pregunta24===0?"checked":""); ?> value="0"></td>
                    <td class="td_amarillo"></td>
                    <td class="td_verde"   ><input type="radio" id="opt24_3" name="opt24" class="custom-control-input" <?php echo e($row->pregunta24===2?"checked":""); ?> value="2"></td>
                </tr>
                <?php endforeach; ?>
            </tbody>
        </table>
        <?php echo Form::submit('Grabar'); ?>

        <div>

        <?php echo Form::close(); ?>

        </div>
    <br>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.default', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>