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
695 B
32 lines
695 B
<?php
|
|
namespace App\admin\Card\Community;
|
|
|
|
|
|
use App\Models\LanzuUserBalance;
|
|
use Dcat\Admin\Admin;
|
|
use Dcat\Admin\Widgets\Metrics\Card;
|
|
|
|
class TotalAmount extends Card
|
|
{
|
|
protected function init()
|
|
{
|
|
parent::init();
|
|
$this->title = '可提现金额';
|
|
$this->content(LanzuUserBalance::getBalance(Admin::user()->id,3));
|
|
}
|
|
|
|
/**
|
|
* 渲染卡片内容
|
|
* @return string
|
|
*/
|
|
public function renderContent()
|
|
{
|
|
$content = parent::renderContent();
|
|
return <<<HTML
|
|
<div class="d-flex justify-content-between align-items-center mt-1" style="margin-bottom: 2px">
|
|
<h2 class="ml-1 font-large-1">{$content}</h2>
|
|
</div>
|
|
HTML;
|
|
}
|
|
|
|
}
|