链街Dcat后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
698 B

  1. <?php
  2. namespace App\admin\Metrics\Community;
  3. use App\Models\LanzuUserBalance;
  4. use Dcat\Admin\Admin;
  5. use Dcat\Admin\Widgets\Metrics\Card;
  6. class TotalAmount extends Card
  7. {
  8. protected function init()
  9. {
  10. parent::init();
  11. $this->title = '可提现金额';
  12. $this->content(LanzuUserBalance::getBalance(Admin::user()->id,3));
  13. }
  14. /**
  15. * 渲染卡片内容
  16. * @return string
  17. */
  18. public function renderContent()
  19. {
  20. $content = parent::renderContent();
  21. return <<<HTML
  22. <div class="d-flex justify-content-between align-items-center mt-1" style="margin-bottom: 2px">
  23. <h2 class="ml-1 font-large-1">{$content}</h2>
  24. </div>
  25. HTML;
  26. }
  27. }