style(admin): subscription show actions and governance links use btn components
This commit is contained in:
@@ -136,24 +136,23 @@
|
||||
|
||||
<a href="/admin/site-subscriptions" class="muted">← 返回订阅列表</a>
|
||||
@if($subscription->subscription_no)
|
||||
<span class="muted">|</span>
|
||||
<a href="{!! $makePlatformOrderUrl(['site_subscription_id' => $subscription->id]) !!}" class="muted">查看关联平台订单(按订阅ID精确过滤)</a>
|
||||
<span class="muted">|</span>
|
||||
<a href="{!! $makePlatformOrderUrl(['site_subscription_id' => $subscription->id, 'syncable_only' => '1']) !!}" class="muted">查看可同步订单</a>
|
||||
<span class="muted">|</span>
|
||||
@php
|
||||
$createRenewalOrderUrl = '/admin/platform-orders/create?' . \Illuminate\Support\Arr::query([
|
||||
'merchant_id' => $subscription->merchant_id,
|
||||
'plan_id' => $subscription->plan_id,
|
||||
'site_subscription_id' => $subscription->id,
|
||||
'order_type' => 'renewal',
|
||||
'quantity' => 1,
|
||||
'remark' => (string) config('saasshop.platform_orders.renewal_order_remark_prefix', '来自订阅:') . $subscription->subscription_no,
|
||||
// 保留 back:创建订单 -> 订单详情后可一键返回本订阅详情
|
||||
'back' => $selfWithoutBack,
|
||||
]);
|
||||
@endphp
|
||||
<a href="{!! $createRenewalOrderUrl !!}" class="muted">创建续费订单</a>
|
||||
<div class="mt-6 actions gap-10">
|
||||
<a class="btn btn-secondary btn-sm" href="{!! $makePlatformOrderUrl(['site_subscription_id' => $subscription->id]) !!}">查看关联平台订单</a>
|
||||
<a class="btn btn-secondary btn-sm" href="{!! $makePlatformOrderUrl(['site_subscription_id' => $subscription->id, 'syncable_only' => '1']) !!}">查看可同步订单</a>
|
||||
@php
|
||||
$createRenewalOrderUrl = '/admin/platform-orders/create?' . \Illuminate\Support\Arr::query([
|
||||
'merchant_id' => $subscription->merchant_id,
|
||||
'plan_id' => $subscription->plan_id,
|
||||
'site_subscription_id' => $subscription->id,
|
||||
'order_type' => 'renewal',
|
||||
'quantity' => 1,
|
||||
'remark' => (string) config('saasshop.platform_orders.renewal_order_remark_prefix', '来自订阅:') . $subscription->subscription_no,
|
||||
// 保留 back:创建订单 -> 订单详情后可一键返回本订阅详情
|
||||
'back' => $selfWithoutBack,
|
||||
]);
|
||||
@endphp
|
||||
<a class="btn btn-sm" href="{!! $createRenewalOrderUrl !!}">创建续费订单</a>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@@ -183,12 +182,12 @@
|
||||
|
||||
@if($reconcileMismatchOrders > 0)
|
||||
<div class="mt-6">
|
||||
<a class="link" href="{!! $makePlatformOrderUrl(['site_subscription_id' => $subscription->id, 'reconcile_mismatch' => '1']) !!}">进入对账不一致订单列表</a>
|
||||
<a class="btn btn-secondary btn-sm" href="{!! $makePlatformOrderUrl(['site_subscription_id' => $subscription->id, 'reconcile_mismatch' => '1']) !!}">进入对账不一致订单列表</a>
|
||||
</div>
|
||||
@endif
|
||||
@if($refundInconsistentOrders > 0)
|
||||
<div class="mt-6">
|
||||
<a class="link" href="{!! $makePlatformOrderUrl(['site_subscription_id' => $subscription->id, 'refund_inconsistent' => '1']) !!}">进入退款不一致订单列表</a>
|
||||
<a class="btn btn-secondary btn-sm" href="{!! $makePlatformOrderUrl(['site_subscription_id' => $subscription->id, 'refund_inconsistent' => '1']) !!}">进入退款不一致订单列表</a>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@@ -205,7 +204,7 @@
|
||||
<input type="number" name="limit" value="50" min="1" max="500" class="w-90">
|
||||
<span>条(安全阀)</span>
|
||||
</label>
|
||||
<button type="submit">批量同步该订阅下可同步订单</button>
|
||||
<button class="btn btn-sm" type="submit">批量同步该订阅下可同步订单</button>
|
||||
</form>
|
||||
<div class="muted muted-xs mt-6">说明:该按钮等价于平台订单页的“批量同步订阅(当前筛选范围)”,已内置只处理可同步订单(已支付+已生效+未同步)。</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user