'integer', 'paid_at' => 'datetime', ]; } protected function formattedAmount(): Attribute { return Attribute::make( get: fn () => 'Rp '.number_format($this->amount, 0, ',', '.'), ); } protected function formattedPaidAt(): Attribute { return Attribute::make( get: fn () => $this->paid_at?->translatedFormat('l, d F Y'), ); } public function employeeAdvance(): BelongsTo { return $this->belongsTo(EmployeeAdvance::class); } public function paidBy(): BelongsTo { return $this->belongsTo(User::class, 'paid_by_id'); } public function cashTransaction(): BelongsTo { return $this->belongsTo(CashTransaction::class); } }