protected function renderStatePage(array $data, bool $error = false, ?string $view = null) : View
    {
        return $error ? $this->renderErrorPage($data, $view) : $this->renderSuccessPage($data, $view);
    }
protected function renderStatePage(array $data, bool $error = false, ?string $view = null) : View
    {
        return $error ? $this->renderErrorPage($data, $view) : $this->renderSuccessPage($data, $view);
    }
protected function renderStatePage ( array $ data , bool $ error = false , ? string $ view = null ) : View { return $ error ? $ this -> renderErrorPage ( $ data , $ view ) : $ this -> renderSuccessPage ( $ data , $ view ) ; }
Render error or success page

@param array       $data
@param bool        $error
@param null|string $view
@return \Illuminate\Contracts\View\View
Render error or success page