/**
  * Show invoicing dashboard
  *
  * @param void
  * @return null
  */
 function index()
 {
     $per_page = 30;
     $page = (int) $this->request->get('page');
     if ($page < 1) {
         $page = 1;
     }
     // if
     list($payments, $pagination) = Payments::paginateAll($page, $per_page);
     $this->smarty->assign(array('payments' => $payments, 'pagination' => $pagination));
 }