|
|
@@ -69,7 +69,7 @@ class ReportReader
|
|
|
foreach ($rows as $i => &$row) $row['rank'] = $i + 1; unset($row);
|
|
|
} else usort($rows, fn ($a, $b) => bccomp((string) $b['bet_amount'], (string) $a['bet_amount'], 10) ?: strcmp($a['group_id'], $b['group_id']));
|
|
|
$total = count($rows); $rows = array_slice($rows, ((int) $p['page'] - 1) * (int) $p['limit'], (int) $p['limit']);
|
|
|
- return $result['meta'] + ['total' => $total, 'data' => $rows];
|
|
|
+ return $result['meta'] + ['total' => $total, 'data' => $rows, 'unallocated' => $result['unallocated'] ?? null];
|
|
|
}
|
|
|
|
|
|
public function funds(array $input): array
|