Start of service display
This commit is contained in:
@@ -57,6 +57,14 @@ class UserHomeController extends Controller
|
||||
|
||||
public function service(Service $o)
|
||||
{
|
||||
foreach ([
|
||||
sprintf('u.service.%s.%s',$o->type->type,$o->status),
|
||||
sprintf('u.service.%s',$o->status),
|
||||
] as $v)
|
||||
if (view()->exists($v))
|
||||
return View($v,['o'=>$o]);
|
||||
|
||||
// View doesnt exist, fall back to default view
|
||||
return View('u.service',['o'=>$o]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user