增加 投递中提示

This commit is contained in:
iVampireSP.com 2023-01-03 00:11:29 +08:00
parent d6ee63dc20
commit 10b62abf2f
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
3 changed files with 6 additions and 3 deletions

View File

@ -69,7 +69,7 @@ public function update(Request $request, WorkOrder $work_order, Reply $reply)
'content' => $request->input('content')
]);
return back()->with('success', '回复修改成功,请等待同步。');
return redirect()->route('admin.work-orders.show', $work_order)->with('success', '修改成功。');
}
/**
@ -84,6 +84,6 @@ public function destroy(WorkOrder $work_order, Reply $reply)
{
$reply->safeDelete();
return back()->with('success', '回复删除成功,请等待同步。');
return redirect()->route('admin.work-orders.show', $work_order)->with('success', '正在排队删除回复。');
}
}

View File

@ -40,7 +40,6 @@ public function show(WorkOrder $workOrder): View
$replies = Reply::where('work_order_id', $workOrder->id)->latest()->paginate(100);
return view('admin.work-orders.show', compact('workOrder', 'replies'));
}
/**

View File

@ -34,6 +34,10 @@
@endif
<span class="text-end">
@if($reply->is_pending)
<span class="badge bg-primary">投递中</span>
@endif
<a href="{{ route('admin.work-orders.replies.edit', [$workOrder, $reply]) }}">编辑</a>
{{ $reply->created_at }}
</span>