public function show(ContactRequest $request, Contact $contact)
    {

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

        return $this->response->setMetaTitle(trans('app.view') . ' ' . trans('contact::contact.name'))
            ->data(compact('contact'))
            ->view($view)
            ->output();
    }
public function show(ContactRequest $request, Contact $contact)
    {

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

        return $this->response->setMetaTitle(trans('app.view') . ' ' . trans('contact::contact.name'))
            ->data(compact('contact'))
            ->view($view)
            ->output();
    }
public function show ( ContactRequest $ request , Contact $ contact ) { if ( $ contact -> exists ) { $ view = 'contact::contact.show' ; } else { $ view = 'contact::contact.new' ; } return $ this -> response -> setMetaTitle ( trans ( 'app.view' ) . ' ' . trans ( 'contact::contact.name' ) ) -> data ( compact ( 'contact' ) ) -> view ( $ view ) -> output ( ) ; }
Display contact.

@param Request $request
@param Model   $contact

@return Response
Display contact .