<div class="container-fluid">
  <h5 class="mb-3 text-center">Conciliación #<?php echo $model->id; ?></h5>
  <table class="table table-bordered table-striped">
    <tr><th>Periodo Fiscal</th><td><?php echo FuncionesController::convertirFecha($model->periodo_fiscal, 'dd/mm/yyyy'); ?></td></tr>
    <tr><th>Casilla 711</th><td><?php echo number_format($model->casilla_711, 2, ',', '.'); ?></td></tr>
    <tr><th>Casilla 780</th><td><?php echo number_format($model->casilla_780, 2, ',', '.'); ?></td></tr>
    <tr><th>Casilla 970</th><td><?php echo number_format($model->casilla_970, 2, ',', '.'); ?></td></tr>
    <tr><th>Estatus</th>
        <td>
            <?php
            switch ((int)$model->estatus_fk) {
                case 6: echo "<span class='badge bg-warning text-dark'>Pendiente</span>"; break;
                case 7: echo "<span class='badge bg-danger'>Rechazado</span>"; break;
                case 8: echo "<span class='badge bg-success'>Aprobado</span>"; break;
                default: echo "<span class='badge bg-secondary'>Desconocido</span>";
            }
            ?>
        </td>
    </tr>
    <?php if (!empty($model->motivo_rechazo_fk)): ?>
    <tr><th>Motivo de Rechazo</th><td><?php echo CHtml::encode($model->motivo_rechazo_fk); ?></td></tr>
    <?php endif; ?>
    <tr><th>Fecha de Carga</th><td><?php echo FuncionesController::convertirFecha($model->fecha_carga, 'dd/mm/yyyy hh:ii:ss'); ?></td></tr>
    <tr><th>Última Actualización</th><td><?php echo FuncionesController::convertirFecha($model->fecha_actualizacion, 'dd/mm/yyyy hh:ii:ss'); ?></td></tr>
  </table>
</div>
