new ParticipationTypeResource($this->participationFee->type()->first())->toArray($request), 'name' => $this->participationFee->name, 'description' => $this->participationFee->description, 'amount_standard' => ['internal' => $this->participationFee->amount_standard, 'readable' => $this->participationFee->amount_standard->toString()], 'amount_reduced' => ['internal' => null, 'readable' => null], 'amount_solidarity' => ['internal' => null, 'readable' => null], ]; if ($this->participationFee->amount_reduced !== null) { $return['amount_reduced'] = ['internal' => $this->participationFee->amount_reduced, 'readable' => $this->participationFee->amount_reduced->toString()]; } if ($this->participationFee->amount_solidarity !== null) { $return['amount_solidarity'] = ['internal' => $this->participationFee->amount_solidarity, 'readable' => $this->participationFee->amount_solidarity->toString()]; } return $return; } }