__('我的等级', 'aksrt'), 'icon' => 'trend-color', 'url' => $level_url, 'tab' => 'level', ], [ 'label' => __('官方认证', 'aksrt'), 'icon' => 'user-auth', 'url' => $auth_url, 'tab' => 'auth', ], [ 'label' => __('我的订单', 'aksrt'), 'icon' => 'order-color', 'url' => $orders_url, 'tab' => 'orders', ], ], static fn(array $item): bool => (string) $item['url'] !== '')); $settings = array_values(array_filter([ [ 'label' => __('消息通知', 'aksrt'), 'icon' => 'msg-color', 'url' => isset($dashboard_tabs['msg']) ? aksrt_get_user_center_tab_url('msg') : '', 'tab' => 'msg', ], [ 'label' => __('个人资料', 'aksrt'), 'icon' => 'user-color', 'url' => isset($dashboard_tabs['profile']) ? aksrt_get_user_center_tab_url('profile') : '', 'tab' => 'profile', ], [ 'label' => __('账户安全', 'aksrt'), 'icon' => 'security-color', 'url' => isset($dashboard_tabs['settings']) ? aksrt_get_user_center_tab_url('settings') : '', 'tab' => 'settings', ], ], static fn(array $item): bool => (string) $item['url'] !== '')); $render_grid = static function (array $items): void { ?>