getStatusCode(); if (view()->exists($view)) { return $view; } $view = substr($view, 0, -2) . 'xx'; if (view()->exists($view)) { return $view; } return null; } }