original_string: public function getBought()
      {
          $items = Item::join('seller')
              ->leftJoin('purchases')
              ->where('purchases.user_id', Auth::user()->userId);
  
          if (mustard_loaded('auctions')) {
              $items->leftJoin('winningBid')
                  ->orWhere('bids.user_id', Auth::user()->userId);
          }
  
          $table = new InventoryBought($items);
  
          return view('mustard::inventory.bought', [
              'table' => $table,
              'items' => $table->paginate(),
          ]);
      }
code: public function getBought()
      {
          $items = Item::join('seller')
              ->leftJoin('purchases')
              ->where('purchases.user_id', Auth::user()->userId);
  
          if (mustard_loaded('auctions')) {
              $items->leftJoin('winningBid')
                  ->orWhere('bids.user_id', Auth::user()->userId);
          }
  
          $table = new InventoryBought($items);
  
          return view('mustard::inventory.bought', [
              'table' => $table,
              'items' => $table->paginate(),
          ]);
      }
code_tokens: public function getBought ( ) { $ items = Item :: join ( 'seller' ) -> leftJoin ( 'purchases' ) -> where ( 'purchases.user_id' , Auth :: user ( ) -> userId ) ; if ( mustard_loaded ( 'auctions' ) ) { $ items -> leftJoin ( 'winningBid' ) -> orWhere ( 'bids.user_id' , Auth :: user ( ) -> userId ) ; } $ table = new InventoryBought ( $ items ) ; return view ( 'mustard::inventory.bought' , [ 'table' => $ table , 'items' => $ table -> paginate ( ) , ] ) ; }
docstring: Return the inventory bought items view.
  
  @return \Illuminate\View\View
docstring_tokens: Return the inventory bought items view .