public function show(FaqRequest $request, Faq $faq)
    {

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

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

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

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

@param Request $request
@param Model   $faq

@return Response
Display faq .