feat: subscriptions index add create renewal order quick link
This commit is contained in:
@@ -129,14 +129,32 @@
|
||||
|
||||
<div class="card mb-20">
|
||||
<h3>工具</h3>
|
||||
<form method="get" action="/admin/site-subscriptions/export">
|
||||
<input type="hidden" name="status" value="{{ $filters['status'] ?? '' }}">
|
||||
<input type="hidden" name="merchant_id" value="{{ $filters['merchant_id'] ?? '' }}">
|
||||
<input type="hidden" name="plan_id" value="{{ $filters['plan_id'] ?? '' }}">
|
||||
<input type="hidden" name="expiry" value="{{ $filters['expiry'] ?? '' }}">
|
||||
<input type="hidden" name="keyword" value="{{ $filters['keyword'] ?? '' }}">
|
||||
<button type="submit">导出当前筛选结果(CSV)</button>
|
||||
</form>
|
||||
<div class="grid-2">
|
||||
<form method="get" action="/admin/site-subscriptions/export">
|
||||
<input type="hidden" name="status" value="{{ $filters['status'] ?? '' }}">
|
||||
<input type="hidden" name="merchant_id" value="{{ $filters['merchant_id'] ?? '' }}">
|
||||
<input type="hidden" name="plan_id" value="{{ $filters['plan_id'] ?? '' }}">
|
||||
<input type="hidden" name="expiry" value="{{ $filters['expiry'] ?? '' }}">
|
||||
<input type="hidden" name="keyword" value="{{ $filters['keyword'] ?? '' }}">
|
||||
<button type="submit">导出当前筛选结果(CSV)</button>
|
||||
</form>
|
||||
|
||||
@php
|
||||
$q = [
|
||||
'order_type' => 'renewal',
|
||||
'back' => $selfWithoutBack,
|
||||
];
|
||||
if ((int) ($filters['merchant_id'] ?? 0) > 0) {
|
||||
$q['merchant_id'] = (int) $filters['merchant_id'];
|
||||
}
|
||||
if ((int) ($filters['plan_id'] ?? 0) > 0) {
|
||||
$q['plan_id'] = (int) $filters['plan_id'];
|
||||
}
|
||||
$createOrderFromSubIndexUrl = '/admin/platform-orders/create?' . \Illuminate\Support\Arr::query($q);
|
||||
@endphp
|
||||
<a class="btn" href="{!! $createOrderFromSubIndexUrl !!}">创建续费订单(带当前筛选)</a>
|
||||
</div>
|
||||
<div class="muted muted-xs" style="margin-top:6px;">用于运营从订阅目录快速补单/续费:会把当前 merchant_id/plan_id/site_subscription_id 作为默认值带到下单页。</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
|
||||
Reference in New Issue
Block a user