<?php } else { ?> <input type="text" name="vr_acerto" id="vr_acerto" class="form-control text-right" value="<?php echo number_format($caixa->getVrAcerto(), 2, ',', '.'); ?> " readonly /> <?php } ?> </div> <div class="form-group col-lg-2 col-md-3 col-sm-3 col-xs-4"> <span>(=) Valor Troco:</span> <input type="text" name="vr_troco" id="vr_troco" class="form-control text-right" value="<?php echo $ticket->getBaixado() == 1 ? number_format($caixa->getVrTroco(), 2, ',', '.') : '0,00'; ?> " readonly /> </div> </div> <div class="btn-group"> <?php if ($ticket->getBaixado() == 0) { ?> <button class="btn btn-success" type="submit"><span class="glyphicon glyphicon-ok"></span> Finalizar</button> <a class="btn btn-warning" href="cadastro.php?id=<?php echo $jogo_id; ?> &target=tickets"><span class="glyphicon glyphicon-remove"></span> Cancelar</a> <a class="btn btn-default" title="Zerar totais" onClick="zeraTotais();"><span class="glyphicon glyphicon-refresh"></span></a>