Admin subscriptions: expiring 7d top10 add renewal CTA

This commit is contained in:
萝卜
2026-03-17 00:45:28 +08:00
parent 03d30f0c7d
commit 3ba8018bf9
2 changed files with 82 additions and 1 deletions

View File

@@ -123,7 +123,20 @@
$merchantUrl = $buildSelfUrl(['merchant_id' => $mid, 'page' => null]);
@endphp
<tr>
<td><a class="link" href="{!! $merchantUrl !!}">{{ $mname !== '' ? $mname : ('站点#' . $mid) }}</a></td>
<td>
<a class="link" href="{!! $merchantUrl !!}">{{ $mname !== '' ? $mname : ('站点#' . $mid) }}</a>
@php
$renewalCtaUrlByMerchant = \App\Support\BackUrl::withBack('/admin/platform-orders/create?' . \Illuminate\Support\Arr::query([
'order_type' => 'renewal',
'require_subscription' => '1',
'merchant_id' => $mid,
]), $selfWithoutBack);
@endphp
<div class="muted muted-xs mt-6">
<a class="link" href="{!! $renewalCtaUrlByMerchant !!}">去创建续费订单</a>
<span class="muted">(建议:进入后按订阅维度续费)</span>
</div>
</td>
<td>{{ $cnt }}</td>
<td>{{ $minEndsAt !== '' ? $minEndsAt : '-' }}</td>
</tr>