'integer', ]; } protected function formattedBalance(): Attribute { return Attribute::make( get: fn () => 'Rp '.number_format($this->balance, 0, ',', '.'), ); } protected function formattedName(): Attribute { return Attribute::make( get: fn () => ucfirst($this->name), ); } public function cashTransactions(): HasMany { return $this->hasMany(CashTransaction::class); } public function createdBy(): BelongsTo { return $this->belongsTo(User::class, 'created_by_id'); } }