<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Faka\Admin\Controller; use Illuminate\Routing\Controller; use ModStart\Admin\Layout\AdminPage; use ModStart\Layout\Row; use ModStart\Widget\Box; use ModStart\Widget\Chart\Line; use Module\Faka\Type\ProductOrderStatus; class DashboardController extends Controller { public function index(AdminPage $evgNV) { return $evgNV->pageTitle(L('Dashboard'))->append(new Row(function (Row $prd0q) { $prd0q->column(12, Box::make(Line::make()->tableDailyCountLatest(array(array('title' => '总数', 'table' => 'faka_product_order'), array('title' => '支付成功', 'table' => 'faka_product_order', 'where' => array('status' => ProductOrderStatus::PAYED)))), '订单趋势')); $prd0q->column(12, Box::make(Line::make()->tableDailySumLatest(array(array('title' => '金额', 'table' => 'faka_product_order', 'where' => array('status' => ProductOrderStatus::PAYED), 'field' => 'payFee'))), '收入趋势（￥）')); })); } }