src/Http/Controllers/BlockResourceController.php
public function show(BlockRequest $request, Block $block)
    {

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

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

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

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

@param Request $request
@param Model   $block

@return Response
Display block .