(new ShareCard('MT'))->canSee(function ($request) { return true; }),
class ShareCard extends Card {
public $width = '1/3';
public function __construct($stock) {
parent::__construct();
$this->withMeta(['uriKey' => $stock]);
$this->withMeta(['setTitle' => 'Single Share' ]);
$this->withMeta(['model' => 'i3\ExchangeStock']);
$this->withMeta(['selectColumns' => ['id','json','name','bid_price','ask_price','last_price'] ]);
$this->withMeta(['usingWhere' => (object) [
"name_short"=>$stock
] ]);
$this->withMeta(['groupBy' => [] ]);
$this->key = $stock;
}
}