feat(dashboard, i18n): enhance agent dashboard and localization support
Updated the agent dashboard to include new metrics for today's bets and payouts, improving visibility for users. Enhanced localization files with additional hints and labels for better user experience across English, Nepali, and Chinese. Introduced new functions for formatting business dates and improved the handling of analytics permissions in the dashboard components.
This commit is contained in:
@@ -77,6 +77,7 @@
|
||||
"todayPayout": "Today's payout",
|
||||
"todayProfit": "Today's profit",
|
||||
"todayBusinessDateHint": "Business date {{date}}",
|
||||
"todayPayoutHint": "Payout {{amount}}",
|
||||
"drawNoHint": "Draw {{drawNo}}",
|
||||
"orderAndTicket": "{{orders}} orders · {{tickets}} items",
|
||||
"marginRate": "Gross margin ~{{rate}}%",
|
||||
@@ -94,6 +95,9 @@
|
||||
"batchPendingDraws": "Draws involved",
|
||||
"batchPendingDrawsCount": "{{count}} draws pending",
|
||||
"platformLockedAndCap": "Site locked {{locked}} / cap {{cap}}",
|
||||
"platformLockedLabel": "Locked",
|
||||
"platformCapLabel": "Cap",
|
||||
"platformCapUnset": "Not set",
|
||||
"platformCapNotConfigured": "Site locked {{locked}} · cap not configured",
|
||||
"platformOrderAndTicket": "Site-wide {{orders}} orders · {{tickets}} lines",
|
||||
"platformBetTotal": "Lifetime bet",
|
||||
@@ -162,6 +166,8 @@
|
||||
"todayBet": "Today's bets",
|
||||
"todayProfit": "Today's P/L",
|
||||
"sevenDayTitle": "Last 7 days",
|
||||
"sevenDayBet": "7-day bets",
|
||||
"sevenDayPayout": "7-day payout",
|
||||
"sevenDayProfit": "7-day P/L",
|
||||
"profitScopeHint": "Site scope: bets minus payouts",
|
||||
"activePlayersToday": "Active players today",
|
||||
@@ -174,6 +180,8 @@
|
||||
"agentCount": "Agent nodes",
|
||||
"playerCount": "Players",
|
||||
"topAgentToday": "Top agent today: {{name}} ({{amount}})",
|
||||
"topAgentTodayLabel": "Top agent today",
|
||||
"overviewEmpty": "No site operations data. Confirm the integration site is bound.",
|
||||
"quickLinks": {
|
||||
"tickets": "Tickets",
|
||||
"players": "Players",
|
||||
@@ -194,6 +202,7 @@
|
||||
"creditAllocatedLabel": "Allocated credit",
|
||||
"creditUsedLabel": "Used credit",
|
||||
"shareRate": "Total share {{rate}}%",
|
||||
"shareProfitScopeHint": "Share profit at this node (from bet share_snapshot)",
|
||||
"settlementCycle": "Cycle {{cycle}}",
|
||||
"teamTitle": "Team size",
|
||||
"directChildren": "Direct child agents",
|
||||
@@ -208,8 +217,11 @@
|
||||
"todayProfit": "Today's profit",
|
||||
"todayShareProfit": "Today's share profit",
|
||||
"sevenDayTitle": "Last 7 days",
|
||||
"sevenDayBet": "7-day bets",
|
||||
"sevenDayPayout": "Payout {{amount}}",
|
||||
"sevenDayPayoutLabel": "7-day payout",
|
||||
"sevenDayProfit": "Profit {{amount}}",
|
||||
"sevenDayShareProfitLabel": "7-day share profit",
|
||||
"sevenDayShareProfit": "Share profit {{amount}}",
|
||||
"pendingBills": "Open agent bills",
|
||||
"pendingUnpaid": "Unpaid total {{amount}}",
|
||||
@@ -230,6 +242,7 @@
|
||||
"no": "No",
|
||||
"viewBills": "View bills",
|
||||
"lineMeta": "Depth {{depth}} · child agents {{childAgent}} · players {{player}}",
|
||||
"overviewEmpty": "No line operations data. Confirm the agent binding is valid.",
|
||||
"viewLine": "Agent line",
|
||||
"quickLinks": {
|
||||
"tickets": "Tickets",
|
||||
@@ -242,6 +255,7 @@
|
||||
"warnings": {
|
||||
"drawPermission": "This account has no draw/dashboard view permission. Finance and risk data were not returned.",
|
||||
"walletPermission": "This account has no wallet reconciliation permission. Abnormal transfer count was not returned.",
|
||||
"analyticsUnavailable": "Trend and ranking analytics are unavailable. KPI cards above remain visible.",
|
||||
"loadFailed": "Failed to load. Check the API and login state.",
|
||||
"apiResourceMissing": "Dashboard analytics API is not registered. Run: php artisan lottery:admin-auth-sync (or apply the latest migration), then refresh."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user