public function hasbetted($id64) { $op = UserItem::where('match_id', '=', $this->id)->where('steamid64', '=', $id64)->get(); if ($op->count() > 0) { return $op; } else { return false; } }
public function pending() { $pending = UserItem::where('steamid64', '=', Auth::user()->steamid64)->where('steamid64_bot', '=', $this->steamid64)->where('status', '=', 1)->get(); return $pending->count(); }