feat: plans index add create order quick link
This commit is contained in:
@@ -176,8 +176,16 @@
|
||||
<td>
|
||||
@php
|
||||
$editPlanUrl = '/admin/plans/' . $plan->id . '/edit?' . \Illuminate\Support\Arr::query(['back' => $selfWithoutBack]);
|
||||
$createOrderUrl = '/admin/platform-orders/create?' . \Illuminate\Support\Arr::query([
|
||||
'plan_id' => $plan->id,
|
||||
'order_type' => 'new_purchase',
|
||||
'back' => $selfWithoutBack,
|
||||
]);
|
||||
@endphp
|
||||
<a href="{!! $editPlanUrl !!}" class="link">编辑</a>
|
||||
<div style="display:flex; gap:10px; flex-wrap:wrap;">
|
||||
<a href="{!! $editPlanUrl !!}" class="link">编辑</a>
|
||||
<a href="{!! $createOrderUrl !!}" class="link">创建订单</a>
|
||||
</div>
|
||||
|
||||
<form method="post" action="/admin/plans/{{ $plan->id }}/set-status" style="margin-top:6px;">
|
||||
@csrf
|
||||
|
||||
Reference in New Issue
Block a user