Start of service display

This commit is contained in:
Deon George
2019-06-29 10:14:12 +10:00
parent a426c7b1a4
commit 6103b61265
14 changed files with 426 additions and 33 deletions

View File

@@ -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]);
}