[REFACTOR] 簡化權限管理介面,整合權限設定至角色管理,並完成多語系支援

This commit is contained in:
2026-03-16 13:47:16 +08:00
parent 09e1d0dc48
commit 1851e91c86
20 changed files with 411 additions and 296 deletions

View File

@@ -11,8 +11,9 @@ class DashboardController extends Controller
public function index(Request $request)
{
// 每頁顯示筆數限制 (預設為 10)
$perPage = $request->get('limit', 10);
$perPage = (int) request()->input('per_page', 10);
if ($perPage <= 0) $perPage = 10;
// 從資料庫獲取真實統計數據
$totalRevenue = \App\Models\Member\MemberWallet::sum('balance');
$activeMachines = Machine::where('status', 'online')->count();