<?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($gFSnq) { } public static function callTodo(Row $B1vjt) { } public static function registerIcon($gFSnq) { self::$icon[] = $gFSnq; } public static function callIcon(Row $B1vjt) { foreach (self::$icon as $FSL7c) { call_user_func_array($FSL7c, array($B1vjt)); } } public static function registerFoot($gFSnq) { self::$foot[] = $gFSnq; } public static function call(AdminPage $WLCMC) { goto kG0mY; O5FIQ: foreach (self::$foot as $FSL7c) { if ($FSL7c instanceof \Closure) { call_user_func_array($FSL7c, array($WLCMC)); } } goto RnAKj; J1B5u: if (!empty($OZWEP)) { $WLCMC->row(Box::make(join('', $OZWEP), '<i class="iconfont icon-details"></i> 待审核')); } goto O5FIQ; kG0mY: $OZWEP = array(); goto bhsDt; bhsDt: foreach (ContentVerifyBiz::listAll() as $kHDkQ) { if (AdminPermission::permit($kHDkQ->verifyRule())) { $xXifJ = $kHDkQ->verifyCount(); if ($xXifJ > 0) { goto PpuZB; TV0Ps: $OZWEP[] = "<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='{$ucbhG}' data-tab-open data-tab-title='{$SLZ1j}'>{$SLZ1j} <span class='ub-text-danger tw-font-bold'>{$xXifJ}</span> 条</a>"; goto eBC37; BOBU2: $SLZ1j = $kHDkQ->title(); goto TV0Ps; PpuZB: $ucbhG = $kHDkQ->verifyUrl(); goto BOBU2; eBC37: } } } goto J1B5u; RnAKj: } }