public function show(PortfolioRequest $request, Portfolio $portfolio)
    {

        if ($portfolio->exists) {
            $view = 'portfolio::portfolio.show';
        } else {
            $view = 'portfolio::portfolio.new';
        }

        return $this->response->title(trans('app.view') . ' ' . trans('portfolio::portfolio.name'))
            ->data(compact('portfolio'))
            ->view($view, true)
            ->output();
    }
public function show(PortfolioRequest $request, Portfolio $portfolio)
    {

        if ($portfolio->exists) {
            $view = 'portfolio::portfolio.show';
        } else {
            $view = 'portfolio::portfolio.new';
        }

        return $this->response->title(trans('app.view') . ' ' . trans('portfolio::portfolio.name'))
            ->data(compact('portfolio'))
            ->view($view, true)
            ->output();
    }
public function show ( PortfolioRequest $ request , Portfolio $ portfolio ) { if ( $ portfolio -> exists ) { $ view = 'portfolio::portfolio.show' ; } else { $ view = 'portfolio::portfolio.new' ; } return $ this -> response -> title ( trans ( 'app.view' ) . ' ' . trans ( 'portfolio::portfolio.name' ) ) -> data ( compact ( 'portfolio' ) ) -> view ( $ view , true ) -> output ( ) ; }
Display portfolio.

@param Request $request
@param Model   $portfolio

@return Response
Display portfolio .