public function view($id, GeneratorListener $listener)
    {
        $model = Report::where('id', $id)->first();
        if (is_null($model)) {
            return $listener->viewFailed();
        }
        return $this->presenter->publishHtml($model);
    }
public function view($id, GeneratorListener $listener)
    {
        $model = Report::where('id', $id)->first();
        if (is_null($model)) {
            return $listener->viewFailed();
        }
        return $this->presenter->publishHtml($model);
    }
public function view ( $ id , GeneratorListener $ listener ) { $ model = Report :: where ( 'id' , $ id ) -> first ( ) ; if ( is_null ( $ model ) ) { return $ listener -> viewFailed ( ) ; } return $ this -> presenter -> publishHtml ( $ model ) ; }
preview report content

@param mixed $id
@param GeneratorListener $listener
@return View
preview report content