original_string: public function showManage($code = null)
      {
          if ($code === null) {
              throw new NotFoundHttpException();
          }
  
          $includePrivate = $this->auth->check();
  
          $subscriber = Subscriber::where('verify_code', '=', $code)->first();
          $usedComponentGroups = Component::enabled()->authenticated($includePrivate)->where('group_id', '>', 0)->groupBy('group_id')->pluck('group_id');
          $componentGroups = ComponentGroup::whereIn('id', $usedComponentGroups)->orderBy('order')->get();
          $ungroupedComponents = Component::enabled()->authenticated($includePrivate)->where('group_id', '=', 0)->orderBy('order')->orderBy('created_at')->get();
  
          if (!$subscriber) {
              throw new BadRequestHttpException();
          }
  
          return View::make('subscribe.manage')
              ->withUngroupedComponents($ungroupedComponents)
              ->withSubscriber($subscriber)
              ->withSubscriptions($subscriber->subscriptions->pluck('component_id')->all())
              ->withComponentGroups($componentGroups);
      }
code: public function showManage($code = null)
      {
          if ($code === null) {
              throw new NotFoundHttpException();
          }
  
          $includePrivate = $this->auth->check();
  
          $subscriber = Subscriber::where('verify_code', '=', $code)->first();
          $usedComponentGroups = Component::enabled()->authenticated($includePrivate)->where('group_id', '>', 0)->groupBy('group_id')->pluck('group_id');
          $componentGroups = ComponentGroup::whereIn('id', $usedComponentGroups)->orderBy('order')->get();
          $ungroupedComponents = Component::enabled()->authenticated($includePrivate)->where('group_id', '=', 0)->orderBy('order')->orderBy('created_at')->get();
  
          if (!$subscriber) {
              throw new BadRequestHttpException();
          }
  
          return View::make('subscribe.manage')
              ->withUngroupedComponents($ungroupedComponents)
              ->withSubscriber($subscriber)
              ->withSubscriptions($subscriber->subscriptions->pluck('component_id')->all())
              ->withComponentGroups($componentGroups);
      }
code_tokens: public function showManage ( $ code = null ) { if ( $ code === null ) { throw new NotFoundHttpException ( ) ; } $ includePrivate = $ this -> auth -> check ( ) ; $ subscriber = Subscriber :: where ( 'verify_code' , '=' , $ code ) -> first ( ) ; $ usedComponentGroups = Component :: enabled ( ) -> authenticated ( $ includePrivate ) -> where ( 'group_id' , '>' , 0 ) -> groupBy ( 'group_id' ) -> pluck ( 'group_id' ) ; $ componentGroups = ComponentGroup :: whereIn ( 'id' , $ usedComponentGroups ) -> orderBy ( 'order' ) -> get ( ) ; $ ungroupedComponents = Component :: enabled ( ) -> authenticated ( $ includePrivate ) -> where ( 'group_id' , '=' , 0 ) -> orderBy ( 'order' ) -> orderBy ( 'created_at' ) -> get ( ) ; if ( ! $ subscriber ) { throw new BadRequestHttpException ( ) ; } return View :: make ( 'subscribe.manage' ) -> withUngroupedComponents ( $ ungroupedComponents ) -> withSubscriber ( $ subscriber ) -> withSubscriptions ( $ subscriber -> subscriptions -> pluck ( 'component_id' ) -> all ( ) ) -> withComponentGroups ( $ componentGroups ) ; }
docstring: Shows the subscription manager page.
  
  @param string|null $code
  
  @return \Illuminate\View\View
docstring_tokens: Shows the subscription manager page .