<h4 class="text-center">
    <?= $titulo; ?>
</h4>
<?php $this->widget('bootstrap.widgets.TbGridView', [
    'id' => 'aporte-voluntario-individual-grid',
    'type' => 'striped bordered condensed',
    'dataProvider' => AporteVoluntario::model()->searchAporteAsociado($id, $ocultar),
    'ajaxUrl' => Yii::app()->createUrl('/aportes/AporteOrdinario/admin'),
    'columns' => [
        [
            'name' => 'Código',
            'value' => '(!empty($data->id_txt_integrado)? "Aporte masivo" : "Aporte individual")',
        ],
        [
            'name' => 'monto',
            'value' => '$data->monto',
            'type' => 'number',
            'htmlOptions' => ['style' => 'text-align: right'],
        ],
        [
            'name' => 'id_aportante',
            'value' => '($data->idAportante)?$data->idAportante->nombre:""',
        ],
        [
            'header' => 'Fecha referencia pago',
            'name' => 'fecha_pago',
            'value' => '(!empty($data->fecha_pago))?date("d-m-Y",strtotime($data->fecha_pago)):""',
        ],
        [
            'name' => 'id_tipo_aporte_voluntario',
            'value' => '(isset($data->idTipoAporteVoluntario))?$data->idTipoAporteVoluntario->descripcion:""',
        ],
        [
            'name' => 'estatus',
            'value' => '$data->nombre_estatus',
        ],
        [
            'header' => 'Fecha estatus',
            'name' => 'fecha_registro',
            'value' => '(!empty($data->fecha_status))?date("d-m-Y",strtotime($data->fecha_status)):""',
        ],
    ],
]);
