Progress on order progress
This commit is contained in:
@@ -87,6 +87,19 @@ class UserHomeController extends Controller
|
||||
*/
|
||||
public function service(Service $o): View
|
||||
{
|
||||
return View('u.service',['o'=>$o]);
|
||||
return View('u.service.home',['o'=>$o]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Progress the order to the next stage
|
||||
*
|
||||
* @note: Route Middleware protects this path
|
||||
* @param Service $o
|
||||
* @param string $status
|
||||
* @return \Illuminate\Http\RedirectResponse
|
||||
*/
|
||||
public function service_progress(Service $o,string $status)
|
||||
{
|
||||
return redirect()->to($o->action($status) ?: url('u/service',$o->id));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user