$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('id', array('name' => 'cliente_id', 'value' => !empty($model->cliente_id) ? $model->cliente->nome : ''), array('name' => 'cliente_carro_id', 'value' => !empty($model->cliente_carro_id) ? strtoupper($model->clienteCarro->placa) : ''), 'observacao', array('name' => 'desconto', 'value' => !empty($model->desconto) ? 'R$ ' . FormatHelper::valorMonetario($model->desconto) : ''), array('label' => 'Valor pago', 'value' => "R\$ " . FormatHelper::valorMonetario($model->getValorTotal() - $model->desconto)), array('name' => 'excluido', 'value' => $model->excluido == 0 ? 'Não' : 'Sim')))); ?> <h3>Resumo</h3> <div> <table class="acl_section"> <thead> <tr> <th>Operação</th> <th>Data</th> <th>Responsável</th> </tr> </thead> <tbody id="tipo_item_1_adicionados"> <?php echo OrdemServicoHelper::renderLogs($model->logsOrdemServico); ?> </tbody> </table> </div> <div> <table class="acl_section"> <thead> <tr> <th>Produto</th> <th>Preço</th> </tr> </thead> <tbody id="tipo_item_1_adicionados"> <?php echo OrdemServicoHelper::renderItens(1, $model->ordemServicoItens, false);