Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MBetterc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mbetter
MBetterc
Commits
0a38c586
Commit
0a38c586
authored
Dec 12, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the match number in the bets page
parent
1115ff9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
admin_bets.html
...rclient/web_dashboard/templates/dashboard/admin_bets.html
+7
-2
bets.html
mbetterclient/web_dashboard/templates/dashboard/bets.html
+7
-2
No files found.
mbetterclient/web_dashboard/templates/dashboard/admin_bets.html
View file @
0a38c586
...
...
@@ -475,6 +475,7 @@ function updateBetsTable(data, container) {
<th><i class="fas fa-hashtag me-1"></i>Bet ID</th>
<th><i class="fas fa-clock me-1"></i>Date & Time</th>
<th><i class="fas fa-list-ol me-1"></i>Details</th>
<th><i class="fas fa-hashtag me-1"></i>Match</th>
<th><i class="fas fa-dollar-sign me-1"></i>Total Amount</th>
<th><i class="fas fa-chart-line me-1"></i>Status</th>
<th><i class="fas fa-money-bill me-1"></i>Payment</th>
...
...
@@ -487,11 +488,14 @@ function updateBetsTable(data, container) {
data
.
bets
.
forEach
(
bet
=>
{
const
betDateTime
=
new
Date
(
bet
.
bet_datetime
).
toLocaleString
();
const
totalAmount
=
parseFloat
(
bet
.
total_amount
).
toFixed
(
2
);
// Collect unique match numbers
const
matchNumbers
=
[...
new
Set
(
bet
.
details
?
bet
.
details
.
map
(
detail
=>
detail
.
match
?
detail
.
match
.
match_number
:
'Unknown'
).
filter
(
n
=>
n
!==
'Unknown'
)
:
[])];
// Determine overall bet status based on details
let
overallStatus
=
'pending'
;
let
statusBadge
=
''
;
if
(
bet
.
details
&&
bet
.
details
.
length
>
0
)
{
const
statuses
=
bet
.
details
.
map
(
detail
=>
detail
.
result
);
if
(
statuses
.
every
(
status
=>
status
===
'won'
))
{
...
...
@@ -520,6 +524,7 @@ function updateBetsTable(data, container) {
<td><strong>
${
bet
.
uuid
.
substring
(
0
,
8
)}
...</strong></td>
<td>
${
betDateTime
}
</td>
<td>
${
bet
.
details
?
bet
.
details
.
length
:
0
}
selections</td>
<td>
${
matchNumbers
.
length
>
0
?
matchNumbers
.
join
(
', '
)
:
'N/A'
}
</td>
<td><strong class="currency-amount" data-amount="
${
totalAmount
}
">
${
formatCurrency
(
totalAmount
)}
</strong></td>
<td>
${
statusBadge
}
</td>
<td>
${
paidBadge
}
</td>
...
...
mbetterclient/web_dashboard/templates/dashboard/bets.html
View file @
0a38c586
...
...
@@ -475,6 +475,7 @@ function updateBetsTable(data, container) {
<th><i class="fas fa-hashtag me-1"></i>Bet ID</th>
<th><i class="fas fa-clock me-1"></i>Date & Time</th>
<th><i class="fas fa-list-ol me-1"></i>Details</th>
<th><i class="fas fa-hashtag me-1"></i>Match</th>
<th><i class="fas fa-dollar-sign me-1"></i>Total Amount</th>
<th><i class="fas fa-chart-line me-1"></i>Status</th>
<th><i class="fas fa-money-bill me-1"></i>Payment</th>
...
...
@@ -487,11 +488,14 @@ function updateBetsTable(data, container) {
data
.
bets
.
forEach
(
bet
=>
{
const
betDateTime
=
new
Date
(
bet
.
bet_datetime
).
toLocaleString
();
const
totalAmount
=
parseFloat
(
bet
.
total_amount
).
toFixed
(
2
);
// Collect unique match numbers
const
matchNumbers
=
[...
new
Set
(
bet
.
details
?
bet
.
details
.
map
(
detail
=>
detail
.
match
?
detail
.
match
.
match_number
:
'Unknown'
).
filter
(
n
=>
n
!==
'Unknown'
)
:
[])];
// Determine overall bet status based on details
let
overallStatus
=
'pending'
;
let
statusBadge
=
''
;
if
(
bet
.
details
&&
bet
.
details
.
length
>
0
)
{
const
statuses
=
bet
.
details
.
map
(
detail
=>
detail
.
result
);
if
(
statuses
.
every
(
status
=>
status
===
'won'
))
{
...
...
@@ -520,6 +524,7 @@ function updateBetsTable(data, container) {
<td><strong>
${
bet
.
uuid
.
substring
(
0
,
8
)}
...</strong></td>
<td>
${
betDateTime
}
</td>
<td>
${
bet
.
details
?
bet
.
details
.
length
:
0
}
selections</td>
<td>
${
matchNumbers
.
length
>
0
?
matchNumbers
.
join
(
', '
)
:
'N/A'
}
</td>
<td><strong class="currency-amount" data-amount="
${
totalAmount
}
">
${
formatCurrency
(
totalAmount
)}
</strong></td>
<td>
${
statusBadge
}
</td>
<td>
${
paidBadge
}
</td>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment