Admin subscriptions: add expiring 7d merchant top10 reminder list
This commit is contained in:
@@ -100,6 +100,43 @@
|
||||
<h3>到期治理</h3>
|
||||
<div class="muted mb-10">按到期时间(ends_at)快速定位需要续费/处理的订阅集合(不改变订阅 status 字段)。</div>
|
||||
|
||||
@if(($filters['expiry'] ?? '') === 'expiring_7d')
|
||||
<div class="mt-10">
|
||||
<div class="muted"><strong>7天内到期|站点维度提醒清单(Top10)</strong></div>
|
||||
<div class="muted muted-xs mt-6">用于运营优先触达:按“到期订阅数”排序,同时展示最早到期时间(min_ends_at)。</div>
|
||||
|
||||
<table class="mt-10" data-role="expiring-7d-merchant-top10">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>站点</th>
|
||||
<th>到期订阅数</th>
|
||||
<th>最早到期</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@forelse(($expiryMerchantRows ?? []) as $row)
|
||||
@php
|
||||
$mid = (int) ($row['merchant_id'] ?? 0);
|
||||
$mname = (string) ($row['merchant_name'] ?? '');
|
||||
$cnt = (int) ($row['count'] ?? 0);
|
||||
$minEndsAt = (string) ($row['min_ends_at'] ?? '');
|
||||
$merchantUrl = $buildSelfUrl(['merchant_id' => $mid, 'page' => null]);
|
||||
@endphp
|
||||
<tr>
|
||||
<td><a class="link" href="{!! $merchantUrl !!}">{{ $mname !== '' ? $mname : ('站点#' . $mid) }}</a></td>
|
||||
<td>{{ $cnt }}</td>
|
||||
<td>{{ $minEndsAt !== '' ? $minEndsAt : '-' }}</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="3" class="muted">暂无数据</td>
|
||||
</tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@php
|
||||
$expiredUrl = $buildQuickFilterUrl(['status' => null, 'expiry' => 'expired']);
|
||||
$expiring7dUrl = $buildQuickFilterUrl(['status' => null, 'expiry' => 'expiring_7d']);
|
||||
|
||||
Reference in New Issue
Block a user