<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Admin\Widget; use ModStart\Admin\Auth\AdminPermission; use ModStart\Admin\Layout\AdminPage; use ModStart\Layout\Row; use ModStart\Widget\Box; use Module\Vendor\Provider\ContentVerify\ContentVerifyBiz; class AdminWidgetDashboard { private static $icon = array(); private static $foot = array(); public static function registerTodo($k4EkJ) { } public static function callTodo(Row $YhT5x) { } public static function registerIcon($k4EkJ) { self::$icon[] = $k4EkJ; } public static function callIcon(Row $YhT5x) { foreach (self::$icon as $MNZ1i) { call_user_func_array($MNZ1i, array($YhT5x)); } } public static function registerFoot($k4EkJ) { self::$foot[] = $k4EkJ; } public static function call(AdminPage $yfn4d) { goto cQLod; hLT6H: foreach (self::$foot as $MNZ1i) { if ($MNZ1i instanceof \Closure) { call_user_func_array($MNZ1i, array($yfn4d)); } } goto dtzAZ; bYBNt: foreach (ContentVerifyBiz::listAll() as $pXrNS) { if (AdminPermission::permit($pXrNS->verifyRule())) { $rY7OO = $pXrNS->verifyCount(); if ($rY7OO > 0) { goto LaYD7; kvpu8: $DvG1n = $pXrNS->title(); goto GALhL; GALhL: $ExhQg[] = "<a class='tw-mr-2 tw-mb-2 tw-inline-block tw-bg-yellow-100 tw-text-yellow-600 tw-py-1 tw-px-2 tw-rounded-2xl'\n                                     href='{$dQdfo}' data-tab-open data-tab-title='{$DvG1n}'>{$DvG1n} <span class='ub-text-danger tw-font-bold'>{$rY7OO}</span> 条</a>"; goto kyy5m; LaYD7: $dQdfo = $pXrNS->verifyUrl(); goto kvpu8; kyy5m: } } } goto T_rh_; T_rh_: if (!empty($ExhQg)) { $yfn4d->row(Box::make(join('', $ExhQg), '<i class="iconfont icon-details"></i> 待审核')); } goto hLT6H; cQLod: $ExhQg = array(); goto bYBNt; dtzAZ: } }