<?php
 namespace App\Admin\Controller; use App\Types\MarketingWebsiteTaskStatus; use App\Types\ProductBugStatus; use App\Types\ProductFeedbackStatus; use Illuminate\Routing\Controller; use ModStart\Admin\Auth\Admin; use ModStart\Admin\Auth\AdminPermission; use ModStart\Admin\Layout\AdminPage; use ModStart\Admin\Widget\DashboardItemA; use ModStart\Admin\Widget\SecurityTooltipBox; use ModStart\Core\Dao\ModelUtil; use ModStart\Core\Util\ColorUtil; use ModStart\Layout\Row; use ModStart\Widget\Box; use Module\AdminManager\Widget\CopyrightWidget; class IndexController extends Controller { public function index(AdminPage $page) { return $page->pageTitle(L('Dashboard')) ->row(new SecurityTooltipBox()) ->append(Box::make(new Row(function (Row $row) { $row->column(3, DashboardItemA::makeIconNumberTitle( 'iconfont icon-user', ModelUtil::count('member_user'), '会员', modstart_admin_url('member'), ColorUtil::randomColor() )); $row->column(3, DashboardItemA::makeIconNumberTitle( 'iconfont icon-list', ModelUtil::count('event'), '活动管理', modstart_admin_url('event/event'), ColorUtil::randomColor() )); $row->column(3, DashboardItemA::makeIconNumberTitle( 'iconfont icon-fill222', ModelUtil::count('event_order_item'), '活动报名', modstart_admin_url('event/order_item'), ColorUtil::randomColor() )); $row->column(3, DashboardItemA::makeIconNumberTitle( 'iconfont icon-list1', ModelUtil::count('event_order'), '活动订单', modstart_admin_url('event/order'), ColorUtil::randomColor() )); }), '基本概况', 'transparent')->style('margin-bottom:0rem;')) ->append(new CopyrightWidget()); } } 