Running total average based on Radio button selection

I’m trying to get a running total average (in real time displayed in my span) based on users radio button selection but I’m not sure how to accomplish this in javascript. See what I have so far: <form> <p>Question here</p> <input type=”radio” class=”check” name=”choose” onchange=”getAverage()” value=1>never <input type=”radio” class=”check” name=”choose” onchange=”getAverage()” value=2>sometimes <input type=”radio” class=”check”…

Details

Not understanding how to use doesntHave in laravel

Consider the following: public function index() { return response()->json([ ‘weapons’ => Item::doesntHave([‘itemAffixes’, ‘artifactProperty’])->where(‘type’, ‘weapon’)->all(), ‘armour’ => Item::doesntHave([‘itemAffixes’, ‘artifactProperty’])->whereIn(‘type’, [ ‘body’, ‘leggings’, ‘sleeves’, ‘gloves’, ‘helmet’, ‘shield’ ])->all(), ‘artifacts’ => Item::where(‘type’, ‘artficat’)->load(‘artifactProperty’)->all(), ‘spells’ => Item::doesntHave([‘itemAffixes’, ‘artifactProperty’])->where(‘type’, ‘spell’)->all(), ‘rings’ => Item::doesntHave([‘itemAffixes’, ‘artifactProperty’])->where(‘type’, ‘ring’)->all(), ], 200); } When this action is hit by a test, I get: Call to…

Details