dashboard: merchant revenue rank links include 7d created_at range

This commit is contained in:
萝卜
2026-03-16 00:34:35 +08:00
parent 7e3274bc3d
commit 6a7c8c6dc3
2 changed files with 44 additions and 1 deletions

View File

@@ -149,7 +149,11 @@
$mid = (int) ($row['merchant_id'] ?? 0);
$mname = (string) (($merchantIdToName[$mid] ?? '') ?: ('#' . $mid));
$merchantOrdersUrl = \App\Support\BackUrl::withBack(
'/admin/platform-orders?' . \Illuminate\Support\Arr::query(['merchant_id' => $mid]),
'/admin/platform-orders?' . \Illuminate\Support\Arr::query([
'merchant_id' => $mid,
'created_from' => now()->subDays(6)->format('Y-m-d'),
'created_to' => now()->format('Y-m-d'),
]),
$selfWithoutBack
);
@endphp