feat: subscriptions index row add renew order link

This commit is contained in:
萝卜
2026-03-13 23:04:22 +00:00
parent e6d3dfaa98
commit 41992a4d9e
2 changed files with 115 additions and 0 deletions

View File

@@ -189,6 +189,23 @@
]);
@endphp
<a href="{!! $subShowUrl !!}">{{ $subscription->subscription_no }}</a>
@php
$q = [
'order_type' => 'renewal',
'site_subscription_id' => $subscription->id,
'back' => $back,
];
if ((int) ($subscription->merchant_id ?? 0) > 0) {
$q['merchant_id'] = (int) $subscription->merchant_id;
}
if ((int) ($subscription->plan_id ?? 0) > 0) {
$q['plan_id'] = (int) $subscription->plan_id;
}
$renewOrderUrl = '/admin/platform-orders/create?' . \Illuminate\Support\Arr::query($q);
@endphp
<div class="muted muted-xs" style="margin-top:4px;">
<a class="muted" href="{!! $renewOrderUrl !!}">续费下单</a>
</div>
</td>
<td>
@if($subscription->merchant)