mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-12 23:48:53 +00:00
🚀 Refactor Blade
- Optimize Blade JavaScript code. - Refactored multiple admin controllers for improved validation, error handling, and query efficiency. - Added ProxyConfig trait to centralize proxy configuration options. - Updated NodeStatusDetection to use model relationships for heartbeat checks. - Improved category, label, and country management logic and error logging. - Added new Blade components for admin UI and updated language files and assets for better localization and frontend support. - Bug fixed & introduced more bug :)
This commit is contained in:
@@ -37,8 +37,13 @@ class UserGroupController extends Controller
|
||||
|
||||
public function edit(UserGroup $group): View
|
||||
{
|
||||
$group->load('nodes:id');
|
||||
|
||||
return view('admin.user.group.info', [
|
||||
'group' => $group,
|
||||
'group' => array_merge(
|
||||
$group->toArray(),
|
||||
['nodes' => $group->nodes->pluck('id')->map('strval')->toArray()]
|
||||
),
|
||||
'nodes' => Node::whereStatus(1)->pluck('name', 'id'),
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user