public function GetTradesByPortfolioId($id) { return Trade::with('profile')->where('portfolio_id', $id)->where('is_active', true)->get(); }