'decimal:2', 'daily_limit' => 'decimal:2', ]; /** * Get formatted max budget display */ public function getMaxBudgetFormattedAttribute(): string { if ($this->monthly_limit) { return '$' . number_format($this->monthly_limit, 2); } if ($this->daily_limit) { return '$' . number_format($this->daily_limit, 2) . '/day'; } return 'Unlimited'; } /** * Get human-readable duration */ public function getDurationHumanAttribute(): string { if ($this->monthly_limit && $this->daily_limit) { return 'Monthly'; } if ($this->daily_limit && !$this->monthly_limit) { return 'Daily'; } return 'Unlimited'; } // Note: gateway_users have their own budget system (monthly_budget_limit, current_month_spending) // and are not linked to this budgets table }