index.phtml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * @version 7.9 [rev.7.9.01]
  4. */
  5. /** @var \Ppb\Db\Table\Row\User $user */
  6. ?>
  7. <blockquote class="bq bq-info">
  8. <?php echo $this->userDetails()->setUser($user)->status(true); ?>
  9. </blockquote>
  10. <?php if ($user->userPaymentMode() == 'account') { ?>
  11. <nav class="navbar navbar-filter navbar-border-top">
  12. <?php if ($user['balance'] > $this->settings['min_invoice_value'] && $user['balance'] > 0) { ?>
  13. <div class="navbar-left">
  14. <a class="btn btn-default"
  15. href="<?php echo $this->url(array('module' => 'app', 'controller' => 'payment', 'action' => 'credit-balance')); ?>">
  16. <?php echo $this->_('Clear Account Balance'); ?>
  17. </a>
  18. </div>
  19. <?php } ?>
  20. <?php if ($user['balance'] <= 0) { ?>
  21. <form class="navbar-form navbar-right"
  22. action="<?php echo $this->url(array('module' => 'app', 'controller' => 'payment', 'action' => 'credit-balance')); ?>"
  23. method="get">
  24. <div class="form-group">
  25. <?php echo
  26. $this->formElement('\\Ppb\\Form\\Element\\LocalizedNumeric', 'amount')
  27. ->setAttributes(array(
  28. 'placeholder' => sprintf($this->_('Amount [%s]'), $this->settings['currency']),
  29. 'class' => 'form-control input-small'
  30. ))
  31. ->render();
  32. ?>
  33. </div>
  34. <?php echo
  35. $this->formElement('submit', 'submit', $this->_('Credit Account'))
  36. ->setAttributes(array('class' => 'btn btn-default'))
  37. ->render();
  38. ?>
  39. </form>
  40. <?php } ?>
  41. </nav>
  42. <?php } ?>
  43. <?php if ($this->settings['enable_messaging']) { ?>
  44. <h4 class="headline">
  45. <span><?php echo $this->_('Messages Received'); ?></span>
  46. </h4>
  47. <?php echo($this->action('browse', 'messaging', null, array('summary' => true))); ?>
  48. <?php } ?>
  49. <!-- watch list -->