title('统计预览'); $this->height(400); $this->contentWidth(12, 0); // $this->chartLabels('Completed Tickets'); // $this->dropdown([ // '7' => 'Last 7 Days', // '28' => 'Last 28 Days', // '30' => 'Last Month', // '365' => 'Last Year', // ]); } /** * 处理请求 * * @param Request $request * * @return mixed|void */ public function handle(Request $request) { // 卡片内容 $this->withContent([ 'total_points'=> 999999999, 'total_wallet'=> 999999999.99, 'total_balance'=> 999999999.99, 'total_distribution'=> 999999999.99, 'total_quota_v2' => 999999999.99, 'total_quota_v1' => 999999999.99, ]); } /** * 卡片内容 * * @param string $content * * @return $this */ public function withContent($content) { return $this->content( <<
New Tickets
{$new}Open Tickets
{$open}Response Time
{$response}