<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Admin\Config; use ModStart\Admin\Auth\AdminPermission; use ModStart\Admin\Layout\AdminPage; use ModStart\Layout\Row; use ModStart\Widget\Box; use Module\Vendor\Provider\ContentVerify\ContentVerifyProvider; class AdminWidgetDashboard { private static $icon = array(); private static $foot = array(); public static function registerTodo($jqce9) { } public static function callTodo(Row $p4Avz) { } public static function registerIcon($jqce9) { self::$icon[] = $jqce9; } public static function callIcon(Row $p4Avz) { foreach (self::$icon as $lDvaK) { call_user_func_array($lDvaK, array($p4Avz)); } } public static function registerFoot($jqce9) { self::$foot[] = $jqce9; } public static function call(AdminPage $DNh5u) { goto IPVlJ; Ddgu2: foreach (self::$foot as $lDvaK) { if ($lDvaK instanceof \Closure) { call_user_func_array($lDvaK, array($DNh5u)); } } goto hG5GX; pr33n: foreach (ContentVerifyProvider::all() as $ugwYT) { if (AdminPermission::permit($ugwYT->verifyRule())) { $toGtY = $ugwYT->verifyCount(); if ($toGtY > 0) { goto eB05C; eB05C: $JPXsz = $ugwYT->verifyUrl(); goto SU930; PJPLQ: $eh4NS[] = "<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='{$JPXsz}' data-tab-open data-tab-title='{$n_9y_}'>{$n_9y_} <span class='ub-text-danger tw-font-bold'>{$toGtY}</span> 条</a>"; goto AOOQ3; SU930: $n_9y_ = $ugwYT->title(); goto PJPLQ; AOOQ3: } } } goto k9hl4; IPVlJ: $eh4NS = array(); goto pr33n; k9hl4: if (!empty($eh4NS)) { $DNh5u->row(Box::make(join('', $eh4NS), '<i class="iconfont icon-details"></i> 待审核')); } goto Ddgu2; hG5GX: } }