<h2 style="text-align: center;">Actualizar Aportantes no Definidos</h2>
<?php
    foreach(Yii::app()->user->getFlashes() as $key => $message) {
        echo '<div class="alert alert-' . $key . '">' . $message . "</div>\n";
    }
?>
<?php if($planillas):?>
<fieldset>
    <h4>Datos asociados a la Cédula: <?= $model->cedula ?></h4>
    <table class="table table-condensed">
        <tr>
            <th>N°</th>
            <th>Nombre</th>
            <th>Apellido</th>
            <th>Unidad</th>
            <th>Fecha de Ingreso</th>
            <th>Estatus</th>
        </tr>
        <?php foreach ($planillas as $key => $planilla):?>
        <tr class="<?php echo $planilla->colorEstatus();?>">
            <td><?= $key+1 ?></td>
            <td><?= $planilla->nombre ?></td>
            <td><?= $planilla->apellidos ?></td>
            <td><?= $planilla->unidad->descripcion ? $planilla->unidad->descripcion : '' ?></td>
            <td><?= $planilla->fechaingreso ?></td>
            <td><?= isset($planilla->idEstatus->nombre_estatus) ? $planilla->idEstatus->nombre_estatus : '' ?></td>
        </tr>
        <?php endforeach; ?>
    </table>
</fieldset>
<?php endif;?>

<?php echo $this->renderPartial('_form',array('model'=>$model,'modelAsociado'=>$modelAsociado)); ?>
