feat: plans create/edit keep back and return

This commit is contained in:
萝卜
2026-03-13 21:49:01 +00:00
parent f901ddc1a5
commit 91c6921362
3 changed files with 17 additions and 2 deletions

View File

@@ -174,7 +174,10 @@
@endif
</td>
<td>
<a href="/admin/plans/{{ $plan->id }}/edit" class="link">编辑</a>
@php
$editPlanUrl = '/admin/plans/' . $plan->id . '/edit?' . \Illuminate\Support\Arr::query(['back' => $selfWithoutBack]);
@endphp
<a href="{!! $editPlanUrl !!}" class="link">编辑</a>
<form method="post" action="/admin/plans/{{ $plan->id }}/set-status" style="margin-top:6px;">
@csrf