feat: subscriptions index row add renew order link
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user