public function relatoriosAction()
 {
     if ($this->request->isPost()) {
         $array = $this->request->getPost();
     } else {
         $array = array();
     }
     $pedidos = new Pedidos();
     $this->view->vendas = $pedidos->getEstatisticasVenda($array);
     $this->view->mais_vendidos = PedidoItens::getMaisVendidos(30, $array);
     $this->view->pedidos = Pedidos::getEstatisticas('pedido', $array);
     $this->view->estados = Pedidos::getEstatisticas('estado', $array);
     $this->view->pagamento = Pedidos::getEstatisticas('pagamento', $array);
 }