增加 投递中提示
This commit is contained in:
parent
d6ee63dc20
commit
10b62abf2f
@ -69,7 +69,7 @@ public function update(Request $request, WorkOrder $work_order, Reply $reply)
|
|||||||
'content' => $request->input('content')
|
'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();
|
$reply->safeDelete();
|
||||||
|
|
||||||
return back()->with('success', '回复删除成功,请等待同步。');
|
return redirect()->route('admin.work-orders.show', $work_order)->with('success', '正在排队删除回复。');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,6 @@ public function show(WorkOrder $workOrder): View
|
|||||||
$replies = Reply::where('work_order_id', $workOrder->id)->latest()->paginate(100);
|
$replies = Reply::where('work_order_id', $workOrder->id)->latest()->paginate(100);
|
||||||
|
|
||||||
return view('admin.work-orders.show', compact('workOrder', 'replies'));
|
return view('admin.work-orders.show', compact('workOrder', 'replies'));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -34,6 +34,10 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
<span class="text-end">
|
<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>
|
<a href="{{ route('admin.work-orders.replies.edit', [$workOrder, $reply]) }}">编辑</a>
|
||||||
{{ $reply->created_at }}
|
{{ $reply->created_at }}
|
||||||
</span>
|
</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user