public function show(PriceListRequest $request, PriceList $price_list)
    {

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

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

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

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

@param Request $request
@param Model   $price_list

@return Response
Display price_list .