dashboard: trend dates link to platform orders filtered by created_at

This commit is contained in:
萝卜
2026-03-16 00:32:45 +08:00
parent 0a58204799
commit 7e3274bc3d
2 changed files with 77 additions and 1 deletions

View File

@@ -99,7 +99,17 @@
<tbody>
@forelse($trendRows as $row)
<tr>
<td>{{ (string) ($row['date'] ?? '') }}</td>
@php
$d = (string) ($row['date'] ?? '');
$dayOrdersUrl = \App\Support\BackUrl::withBack(
'/admin/platform-orders?' . \Illuminate\Support\Arr::query([
'created_from' => $d,
'created_to' => $d,
]),
$selfWithoutBack
);
@endphp
<td><a class="link" href="{!! $dayOrdersUrl !!}">{{ $d }}</a></td>
<td>{{ (int) ($row['count'] ?? 0) }}</td>
<td>¥{{ number_format((float) ($row['paid_sum'] ?? 0), 2) }}</td>
</tr>