getLocale() === 'en' ? number_format($value, $decimals, '.', ',') : number_format($value, $decimals, ',', ' '); } public static function date(?CarbonInterface $value, bool $seconds = false): ?string { return $value?->format((app()->getLocale() === 'en' ? 'M j, Y H:i' : 'd.m.Y H:i').($seconds ? ':s' : '')); } }