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."
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"exportSuccess": "Exported {{report}} ({{format}})",
|
||||
"exportServerSuccess": "Job {{jobNo}} created and downloaded {{report}} ({{format}})",
|
||||
"exportFailed": "Export failed",
|
||||
"exportHint": "Server exports use the current filters to build a full file. Completed jobs can be downloaded again below.",
|
||||
"exportHint": "Export uses the current filters to build the full dataset. Preview query is not required.",
|
||||
"exportServerHint": "Full export via server job (preview query not required)",
|
||||
"exportClientHint": "Export current preview page (run query first)",
|
||||
"validation": {
|
||||
@@ -281,19 +281,15 @@
|
||||
},
|
||||
"daily_profit": {
|
||||
"title": "Daily P&L summary",
|
||||
"summary": "Summarize bet amount, payout, and house P&L by business date. Refund and standalone net amount are not included yet."
|
||||
"summary": "Betting P&L by business date; defaults to the last 30 days. Ticket amounts — not credit-line period settlement."
|
||||
},
|
||||
"player_win_loss": {
|
||||
"title": "Player win/loss report",
|
||||
"summary": "Track player win/loss over a selected period for finance and support review."
|
||||
},
|
||||
"profit_reports": {
|
||||
"disclaimer": "These reports use ticket bet/win amounts (betting results), not credit-line period settlement. For share, rebate, and collections, use Settlement Center → Period reports."
|
||||
"summary": "Win/loss by player and business date; defaults to the last 30 days. Ticket amounts — not credit-line settlement."
|
||||
},
|
||||
"player_transfer": {
|
||||
"title": "Player transfer report",
|
||||
"summary": "Review player transfers in, transfers out, reversals, and exception handling.",
|
||||
"disclaimer": "Main-site wallet transfer orders only (wallet-mode players). Credit-line players have no such transfers — use Settlement Center for period ledger."
|
||||
"summary": "Wallet-mode main-site transfers by record time; defaults to the last 30 days."
|
||||
},
|
||||
"hot_number_risk": {
|
||||
"title": "Hot number risk report",
|
||||
@@ -301,7 +297,7 @@
|
||||
},
|
||||
"play_dimension": {
|
||||
"title": "Play dimension report",
|
||||
"summary": "Break down betting volume, payout, rebate, and P&L structure by play."
|
||||
"summary": "P&L by play and business date; defaults to the last 30 days. Ticket amounts — not credit-line settlement."
|
||||
},
|
||||
"sold_out_number": {
|
||||
"title": "Sold-out number report",
|
||||
@@ -309,12 +305,11 @@
|
||||
},
|
||||
"rebate_commission": {
|
||||
"title": "Commission / rebate report",
|
||||
"summary": "Summarize commission, rebate, and matched rules by play and period.",
|
||||
"disclaimer": "Wallet-mode instant rebate/commission — not agent credit-line period settlement. Use Agent → Settlement bills for credit-line reports."
|
||||
"summary": "Wallet-mode instant rebate by business date; defaults to the last 30 days. Not credit-line period settlement."
|
||||
},
|
||||
"admin_audit": {
|
||||
"title": "Admin operation audit report",
|
||||
"summary": "Export key admin operation traces by operator and period."
|
||||
"summary": "Admin actions by operator and record time; defaults to the last 30 days."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user