$this->id, 'type' => $this->type, 'reason' => $this->reason, 'amount' => $this->amount, 'balance_after' => $this->balance_after, 'description' => $this->description, 'via_gateway' => $this->payment_id !== null, 'invoice_number' => $this->whenLoaded('invoice', fn () => $this->invoice?->number), 'created_at' => verta($this->created_at)->format('%Y/%m/%d - H:i'), ]; } }