$this->id, 'memberId' => $this->member_id, 'fullName' => $this->full_name, 'division' => $this->division_name ?? '', 'limit' => [ 'current' => $this->claims_sum_total_claim ?? 0, 'total' => $this->currentPlan->limit_rules ?? 0, 'percentage' => (!empty($this->currentPlan->limit_rules ?? 0)) ? (($this->claims_sum_total_claim / $this->currentPlan->limit_rules) * 100) : 0 ], 'status' => $this->active, ]; } }