```
$somedata = Indicator::all();
$indicators = [];
// ... (re-structure the data; rows to columns)
$indicators[] = ['a'=>'2016', 'b'=>'2017', 'c'=>'2018'];
$indicators[] = ['a'=>'1232', 'b'=>'3242', 'c'=>'5467'];
$indicators[] = ['a'=>'1232', 'b'=>'3242', 'c'=>'5467'];
$indicators[] = ['a'=>'closed', 'b'=>'closed', 'c'=>'open'];> 

// ??? How to form a valid object to send ???
return view('indicators.index')->with(['indicators'=> $indicators]);

```

I select data. I change the structure for displaying it; but cannot find the correct structure to then pass in my response.

The view throws the error "Trying to get property of non-object (View: "

(I looked at the dump of Indicator::all(); and wonder if I have the right/wrong approach)

// noob