title('营业额'); $this->subTitle('订单营业额'); $money = floor(Order::whereNotNull('store_id')->where('status', Order::STATUS_COMPLETED)->sum('total_amount') / 100); $this->withContent(number_format($money)); } public function withContent($content) { return $this->content( <<